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:
Krille Fear 2022-03-25 09:17:49 +00:00
commit c897127be5
1 changed files with 5 additions and 2 deletions

View File

@ -443,9 +443,12 @@ class KeyManager {
}
_pendingNewOutboundGroupSessions[roomId] =
_createOutboundGroupSession(roomId);
try {
await _pendingNewOutboundGroupSessions[roomId];
} finally {
return _pendingNewOutboundGroupSessions.remove(roomId)!;
}
}
/// Prepares an outbound group session for a given room ID. That is, load it from
/// the database, cycle it if needed and create it if absent.