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

@@ -312,3 +312,8 @@ class Client(QObject):
response = self.net.talk(self.nio.room_forget, room_id=room_id)
self.nio.invalidate_outbound_session(room_id)
return response
@pyqtSlot(str, result=bool)
def roomHasUnknownDevices(self, room_id: str) -> bool:
return self.nio.room_contains_unverified(room_id)