Merge pull request #2013 from famedly/krille/fix-megolm-sessions-invalid-after-restart
fix: Megolm sessions become invalid after restarting client
This commit is contained in:
commit
51b10057f6
|
|
@ -289,8 +289,7 @@ class KeyManager {
|
|||
dbSess.sessionId != sessionId) {
|
||||
return null;
|
||||
}
|
||||
roomInboundGroupSessions[sessionId] = dbSess;
|
||||
return sess;
|
||||
return roomInboundGroupSessions[sessionId] = dbSess;
|
||||
}
|
||||
|
||||
Map<String, Map<String, bool>> _getDeviceKeyIdMap(
|
||||
|
|
@ -348,6 +347,8 @@ class KeyManager {
|
|||
sess.outboundGroupSession!.session_id(),
|
||||
);
|
||||
if (inboundSess == null) {
|
||||
Logs().w('No inbound megolm session found for outbound session!');
|
||||
assert(inboundSess != null);
|
||||
wipe = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue