mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Space Settings UI tweaks (#4678)
* design tweaks for the space settings flow * pr suggestions * update proj
This commit is contained in:
@@ -36,3 +36,12 @@ protocol RoomPowerLevelsProxyProtocol {
|
||||
func canUserPinOrUnpin(userID: String) -> Result<Bool, RoomProxyError>
|
||||
func canUserJoinCall(userID: String) -> Result<Bool, RoomProxyError>
|
||||
}
|
||||
|
||||
// MARK: - Helpers
|
||||
|
||||
extension RoomPowerLevelsProxyProtocol {
|
||||
/// Can own user edit either the room name, avatar or topic
|
||||
func canOwnUserEditBaseInfo() -> Bool {
|
||||
canOwnUser(sendStateEvent: .roomAvatar) || canOwnUser(sendStateEvent: .roomName) || canOwnUser(sendStateEvent: .roomTopic)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user