Skip to content

Commit 3083362

Browse files
authored
Merge branch 'joao/MOB-9946-ios-add-auth-checks-for-api-call-methods' into evan/MOB-9946
2 parents ffa7efd + 57860d0 commit 3083362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swift-sdk/Internal/AnonymousUserManager.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class AnonymousUserManager: AnonymousUserManagerProtocol {
8686
}
8787

8888
// Creates a user after criterias met and login the user and then sync the data through track APIs
89-
private func createKnownUserIfCriteriaMatched(_ criteriaId: String) {
89+
private func createAnonymousUser(_ criteriaId: String) {
9090
var anonSessions = convertToDictionary(data: localStorage.anonymousSessions?.itbl_anon_sessions)
9191
let userId = IterableUtil.generateUUID()
9292
anonSessions[JsonKey.matchedCriteriaId] = Int(criteriaId)
@@ -224,7 +224,7 @@ public class AnonymousUserManager: AnonymousUserManagerProtocol {
224224
}
225225

226226
if let criteriaId = evaluateCriteriaAndReturnID() {
227-
createKnownUserIfCriteriaMatched(criteriaId)
227+
createAnonymousUser(criteriaId)
228228
}
229229
}
230230

0 commit comments

Comments
 (0)