fix: React to all decryption errors with ratchet restoration
This commit is contained in:
parent
47948fa6ea
commit
bea433e377
@ -381,7 +381,7 @@ class OmemoSessionManager {
|
||||
} else {
|
||||
keyAndHmac = await ratchet.ratchetDecrypt(message, decodedRawKey);
|
||||
}
|
||||
} on InvalidMessageHMACException {
|
||||
} catch (_) {
|
||||
await _restoreRatchet(ratchetKey, oldRatchet);
|
||||
rethrow;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user