fix: Check if database got disposed in keyManager

This commit is contained in:
Christian Pauly 2021-09-03 15:05:34 +02:00
parent 524b09c572
commit 630203e7b6
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ class KeyManager {
_inboundGroupSessions[roomId] = <String, SessionKey>{};
}
_inboundGroupSessions[roomId][sessionId] = newSession;
if (!client.isLogged() || client.encryption == null) {
return;
}
client.database
?.storeInboundGroupSession(
client.id,