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),
|
json.encode(senderClaimedKeys),
|
||||||
)
|
)
|
||||||
?.then((_) {
|
?.then((_) {
|
||||||
|
if (!client.isLogged() || client.encryption == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (uploaded) {
|
if (uploaded) {
|
||||||
client.database
|
client.database
|
||||||
.markInboundGroupSessionAsUploaded(client.id, roomId, sessionId);
|
.markInboundGroupSessionAsUploaded(client.id, roomId, sessionId);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue