diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java b/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java index 8c094ec0..ec9af6d9 100644 --- a/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java +++ b/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java @@ -86,7 +86,7 @@ public class RatchetingSession { secrets.write(Curve.calculateAgreement(parameters.getTheirSignedPreKey(), parameters.getOurBaseKey().getPrivateKey())); - if (sessionVersion >= 3 & parameters.getTheirOneTimePreKey().isPresent()) { + if (sessionVersion >= 3 && parameters.getTheirOneTimePreKey().isPresent()) { secrets.write(Curve.calculateAgreement(parameters.getTheirOneTimePreKey().get(), parameters.getOurBaseKey().getPrivateKey())); } |