Show banner when unverified devices in room

The banner replaces the SendBox, to prevent sending messages when nio
will raise an OlmTrustError.
This commit is contained in:
miruka
2019-05-08 13:45:25 -04:00
parent af8c0c6811
commit 7b3b886f10
9 changed files with 108 additions and 7 deletions

View File

@@ -14,6 +14,9 @@ HColumnLayout {
.roomCategories.get(category)
.rooms.get(roomId)
readonly property bool hasUnknownDevices:
Backend.clients.get(userId).roomHasUnknownDevices(roomId)
id: chatPage
onFocusChanged: sendBox.setFocus()
@@ -42,9 +45,13 @@ HColumnLayout {
inviter: roomInfo.inviter
}
UnknownDevicesBanner {
visible: category === "Rooms" && hasUnknownDevices
}
SendBox {
id: sendBox
visible: category === "Rooms"
visible: category === "Rooms" && ! hasUnknownDevices
}
LeftBanner {