fix: Commit the restored ratchet

This commit is contained in:
PapaTutuWawa 2022-09-14 22:02:35 +02:00
parent c5c579810e
commit 4341797f14

View File

@ -304,6 +304,15 @@ class OmemoSessionManager {
await _lock.synchronized(() { await _lock.synchronized(() {
print('RESTORING RATCHETS'); print('RESTORING RATCHETS');
_ratchetMap[mapKey] = oldRatchet; _ratchetMap[mapKey] = oldRatchet;
// Commit the ratchet
_eventStreamController.add(
RatchetModifiedEvent(
mapKey.jid,
mapKey.deviceId,
oldRatchet,
),
);
}); });
} }