mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 08:09:12 +01:00
Remove unnecessary validation check.
This commit is contained in:
committed by
Nicholas
parent
0817f113c6
commit
ad50c81a6b
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user