mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-01 12:22:14 +00:00
The future is the other direction.
// FREEBIE
This commit is contained in:
parent
c54a5b613b
commit
30aff82341
@ -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!");
|
throw new InvalidMessageException("Over 2000 messages into the future!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user