File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
OneSignalSDK/onesignal/core/src/main/java/com/onesignal/common/consistency Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -23,17 +23,14 @@ class IamFetchReadyCondition(
23
23
override fun isMet (indexedTokens : Map <String , Map <IConsistencyKeyEnum , String >>): Boolean {
24
24
val tokenMap = indexedTokens[key] ? : return false
25
25
val userUpdateTokenSet = tokenMap[IamFetchRywTokenKey .USER ] != null
26
- val subscriptionUpdateTokenSet = tokenMap[IamFetchRywTokenKey .SUBSCRIPTION ] != null
27
26
28
27
/* *
29
28
* We always update the session count so we know we will have a userUpdateToken. We don't
30
29
* necessarily make a subscriptionUpdate call on every session. The following logic
31
- * is written in a way so that if somehow the subscriptionUpdateToken is set *before* the
32
- * userUpdateToken, we will wait for the userUpdateToken to also be set. This is because
33
- * we know that a userUpdate call was made and both user & subscription properties are
34
- * considered during segment calculations.
30
+ * doesn't consider tokenMap[IamFetchRywTokenKey.SUBSCRIPTION] for this reason. This doesn't
31
+ * mean it isn't considered if present when doing the token comparison.
35
32
*/
36
- return (userUpdateTokenSet && subscriptionUpdateTokenSet) || userUpdateTokenSet
33
+ return userUpdateTokenSet
37
34
}
38
35
39
36
override fun getNewestToken (indexedTokens : Map <String , Map <IConsistencyKeyEnum , String ?>>): String? {
You can’t perform that action at this time.
0 commit comments