mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
SP4: space settings (#5730)
* SP4: Space Settings - Space settings screen implemented - No space upgrade available as per Element web - Need more insights for the space address field - Added settings live update - Added local alias implementation
This commit is contained in:
+3
-3
@@ -37,13 +37,13 @@ class MatrixItemChooserRoomRestrictedAllowedParentsDataSource: MatrixItemChooser
|
||||
guard let self = self else { return }
|
||||
|
||||
let joinRuleEvent = state?.stateEvents(with: .roomJoinRules)?.last
|
||||
let allowContent: [[String: String]] = joinRuleEvent?.wireContent["allow"] as? [[String: String]] ?? []
|
||||
let allowContent: [[String: String]] = joinRuleEvent?.wireContent[kMXJoinRulesContentKeyAllow] as? [[String: String]] ?? []
|
||||
self.allowedParentIds = allowContent.compactMap { allowDictionnary in
|
||||
guard let type = allowDictionnary["type"], type == "m.room_membership" else {
|
||||
guard let type = allowDictionnary[kMXJoinRulesContentKeyType], type == kMXEventTypeStringRoomMembership else {
|
||||
return nil
|
||||
}
|
||||
|
||||
return allowDictionnary["room_id"]
|
||||
return allowDictionnary[kMXJoinRulesContentKeyRoomId]
|
||||
}
|
||||
|
||||
let ancestorsId = session.spaceService.ancestorsPerRoomId[self.roomId] ?? []
|
||||
|
||||
Reference in New Issue
Block a user