Skip to content

Commit 5d5c837

Browse files
committed
canAccess should be inclusive
Since opRepoPostCreateDelay is passed to delay() canAccess() should use inclusive logic.
1 parent 064db14 commit 5d5c837

File tree

1 file changed

+1
-1
lines changed
  • OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/operations/impl/states

1 file changed

+1
-1
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/user/internal/operations/impl/states/NewRecordsState.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class NewRecordsState(
2323

2424
fun canAccess(key: String): Boolean {
2525
val timeLastMovedOrCreated = records[key] ?: return true
26-
return _time.currentTimeMillis - timeLastMovedOrCreated > _configModelStore.model.opRepoPostCreateDelay
26+
return _time.currentTimeMillis - timeLastMovedOrCreated >= _configModelStore.model.opRepoPostCreateDelay
2727
}
2828

2929
fun isInMissingRetryWindow(key: String): Boolean {

0 commit comments

Comments
 (0)