Address comments, show unencrypted rooms,

retain viewModel and services in ScreenSates so you can interact with Previews after the first state.
This commit is contained in:
David Langley
2021-09-23 23:57:54 +01:00
parent 309226a062
commit d1340c3ed3
16 changed files with 185 additions and 114 deletions
@@ -36,7 +36,7 @@ class TemplateRoomListService: TemplateRoomListServiceProtocol {
self.session = session
let unencryptedRooms = session.rooms
.filter(\.summary.isEncrypted)
.filter({ !$0.summary.isEncrypted })
.map(TemplateRoomListRoom.init(mxRoom:))
self.roomsSubject = CurrentValueSubject(unencryptedRooms)
}