fix: Check if client is disposed in a callback
This fixed an edge case in the tests.
This commit is contained in:
parent
d921f38734
commit
fb62307730
|
|
@ -157,6 +157,9 @@ class KeyManager {
|
|||
json.encode(senderClaimedKeys),
|
||||
)
|
||||
?.then((_) {
|
||||
if (!client.isLogged() || client.encryption == null) {
|
||||
return;
|
||||
}
|
||||
if (uploaded) {
|
||||
client.database
|
||||
.markInboundGroupSessionAsUploaded(client.id, roomId, sessionId);
|
||||
|
|
|
|||
Loading…
Reference in New Issue