Remove unnecessary validation check.

This commit is contained in:
Greyson Parrelli
2023-05-22 17:47:24 -04:00
committed by Nicholas
parent 0817f113c6
commit ad50c81a6b
3 changed files with 4 additions and 10 deletions

View File

@@ -77,9 +77,7 @@ public class TextSecureSessionStore implements SignalServiceSessionStore {
try (SignalSessionLock.Lock unused = ReentrantSessionLock.INSTANCE.acquire()) {
SessionRecord sessionRecord = SignalDatabase.sessions().load(accountId, address);
return sessionRecord != null &&
sessionRecord.hasSenderChain() &&
sessionRecord.getSessionVersion() == CiphertextMessage.CURRENT_VERSION;
return sessionRecord != null && sessionRecord.hasSenderChain();
}
}
@@ -168,8 +166,6 @@ public class TextSecureSessionStore implements SignalServiceSessionStore {
}
private static boolean isActive(@Nullable SessionRecord record) {
return record != null &&
record.hasSenderChain() &&
record.getSessionVersion() == CiphertextMessage.CURRENT_VERSION;
return record != null && record.hasSenderChain();
}
}