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 {
|
} else {
|
||||||
keyAndHmac = await ratchet.ratchetDecrypt(message, decodedRawKey);
|
keyAndHmac = await ratchet.ratchetDecrypt(message, decodedRawKey);
|
||||||
}
|
}
|
||||||
} on InvalidMessageHMACException {
|
} catch (_) {
|
||||||
await _restoreRatchet(ratchetKey, oldRatchet);
|
await _restoreRatchet(ratchetKey, oldRatchet);
|
||||||
rethrow;
|
rethrow;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user