Merge branch 'henri/fix-olm-session-creation-issue' into 'main'
fix: remove pendaing outbound group session creation on completed or errored Closes #252 See merge request famedly/company/frontend/famedlysdk!987
This commit is contained in:
commit
c897127be5
|
|
@ -443,8 +443,11 @@ class KeyManager {
|
||||||
}
|
}
|
||||||
_pendingNewOutboundGroupSessions[roomId] =
|
_pendingNewOutboundGroupSessions[roomId] =
|
||||||
_createOutboundGroupSession(roomId);
|
_createOutboundGroupSession(roomId);
|
||||||
await _pendingNewOutboundGroupSessions[roomId];
|
try {
|
||||||
return _pendingNewOutboundGroupSessions.remove(roomId)!;
|
await _pendingNewOutboundGroupSessions[roomId];
|
||||||
|
} finally {
|
||||||
|
return _pendingNewOutboundGroupSessions.remove(roomId)!;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prepares an outbound group session for a given room ID. That is, load it from
|
/// Prepares an outbound group session for a given room ID. That is, load it from
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue