diff --git a/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java b/src/main/java/org/whispersystems/libaxolotl/ratchet/RatchetingSession.java index 8c094ec0d..ec9af6d9d 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())); }