mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Only display unencrypted rooms which we can use with the chat view.
This commit is contained in:
+5
-1
@@ -34,7 +34,11 @@ class TemplateRoomListService: TemplateRoomListServiceProtocol {
|
||||
|
||||
init(session: MXSession) {
|
||||
self.session = session
|
||||
self.roomsSubject = CurrentValueSubject(session.rooms.map(TemplateRoomListRoom.init(mxRoom:)))
|
||||
|
||||
let unencryptedRooms = session.rooms
|
||||
.filter(\.summary.isEncrypted)
|
||||
.map(TemplateRoomListRoom.init(mxRoom:))
|
||||
self.roomsSubject = CurrentValueSubject(unencryptedRooms)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user