fix: Check if database got disposed in keyManager
This commit is contained in:
parent
524b09c572
commit
630203e7b6
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue