mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-23 11:57:46 +00:00
The future is the other direction.
// FREEBIE
This commit is contained in:
@@ -324,7 +324,7 @@ public class SessionCipher {
|
||||
}
|
||||
}
|
||||
|
||||
if (chainKey.getIndex() - counter > 2000) {
|
||||
if (counter - chainKey.getIndex() > 2000) {
|
||||
throw new InvalidMessageException("Over 2000 messages into the future!");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user