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 bd4d9974a8
commit d560e513d4
16 changed files with 185 additions and 114 deletions

View File

@@ -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)
}