Pinning items Feature Flag (#3063)

This commit is contained in:
Mauro
2024-07-18 18:28:30 +02:00
committed by GitHub
parent 7fbdc2c20f
commit d437e1f3ed
24 changed files with 66 additions and 21 deletions
@@ -359,6 +359,13 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
} else {
state.canCurrentUserRedactSelf = false
}
if appSettings.pinningEnabled,
case let .success(value) = await roomProxy.canUser(userID: roomProxy.ownUserID, sendStateEvent: .roomPinnedEvents) {
state.canCurrentUserPin = value
} else {
state.canCurrentUserPin = false
}
}
private func setupSubscriptions() {