Skip to content

Commit aafe9de

Browse files
author
Rodrigo Gomez Palacio
committed
fixup! fixup! Update executors to set offsets on consistency manager
1 parent a55d27f commit aafe9de

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors/OSPropertyOperationExecutor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ class OSPropertyOperationExecutor: OSOperationExecutor {
260260
{
261261
OSConsistencyManager.shared.setRywToken(id: onesignalId, key: OSIamFetchOffsetKey.user, value: rywToken)
262262
} else {
263+
// handle a potential regression where ryw_token is no longer returned by API
263264
OSConsistencyManager.shared.resolveConditionsWithID(id: OSIamFetchReadyCondition.CONDITIONID)
264265
}
265266
}

iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors/OSSubscriptionOperationExecutor.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ class OSSubscriptionOperationExecutor: OSOperationExecutor {
303303
{
304304
OSConsistencyManager.shared.setRywToken(id: onesignalId, key: OSIamFetchOffsetKey.subscription, value: rywToken)
305305
} else {
306+
// handle a potential regression where ryw_token is no longer returned by API
306307
OSConsistencyManager.shared.resolveConditionsWithID(id: OSIamFetchReadyCondition.CONDITIONID)
307308
}
308309
}
@@ -419,6 +420,7 @@ class OSSubscriptionOperationExecutor: OSOperationExecutor {
419420
{
420421
OSConsistencyManager.shared.setRywToken(id: onesignalId, key: OSIamFetchOffsetKey.subscription, value: rywToken)
421422
} else {
423+
// handle a potential regression where ryw_token is no longer returned by API
422424
OSConsistencyManager.shared.resolveConditionsWithID(id: OSIamFetchReadyCondition.CONDITIONID)
423425
}
424426
}

iOS_SDK/OneSignalSDK/OneSignalUser/Source/Executors/OSUserExecutor.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ extension OSUserExecutor {
264264
{
265265
OSConsistencyManager.shared.setRywToken(id: onesignalId, key: OSIamFetchOffsetKey.user, value: rywToken)
266266
} else {
267+
// handle a potential regression where ryw_token is no longer returned by API
267268
OSConsistencyManager.shared.resolveConditionsWithID(id: OSIamFetchReadyCondition.CONDITIONID)
268269
}
269270
}

0 commit comments

Comments
 (0)