mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Repair broken session with preKeyMessage
This commit is contained in:
parent
a90e37ba53
commit
8b8c6e190a
5 changed files with 158 additions and 50 deletions
|
@ -107,7 +107,7 @@ public class SignalOmemoRatchet
|
|||
throw new CryptoFailedException(e);
|
||||
}
|
||||
catch (InvalidKeyIdException e) {
|
||||
throw new NoRawSessionException(e);
|
||||
throw new NoRawSessionException(sender, e);
|
||||
}
|
||||
catch (DuplicateMessageException e) {
|
||||
LOGGER.log(Level.INFO, "Decryption of PreKeyMessage from " + sender +
|
||||
|
@ -125,7 +125,7 @@ public class SignalOmemoRatchet
|
|||
throw new AssertionError("Signals trust management MUST be disabled.");
|
||||
}
|
||||
catch (InvalidMessageException | NoSessionException e) {
|
||||
throw new NoRawSessionException(e);
|
||||
throw new NoRawSessionException(sender, e);
|
||||
}
|
||||
catch (LegacyMessageException e) {
|
||||
throw new CryptoFailedException(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue