Only display unencrypted rooms which we can use with the chat view.

This commit is contained in:
David Langley
2021-09-21 08:06:27 +01:00
parent 196a4ad885
commit ff813b8647
4 changed files with 17 additions and 11 deletions
@@ -68,9 +68,11 @@ struct TemplateRoomChat: View {
.accessibility(identifier: "loadingProgress")
} else if case .failedToInitialize = viewModel.viewState.roomInitializationStatus {
Text("Sorry, We failed to load the room.")
.foregroundColor(theme.colors.primaryContent)
.accessibility(identifier: "errorMessage")
} else if viewModel.viewState.bubbles.isEmpty {
Text("There are no messages in this room yet.")
.foregroundColor(theme.colors.primaryContent)
.accessibility(identifier: "errorMessage")
} else {
bubbleList