Skip to content

Commit 02e1f42

Browse files
authored
Merge branch 'feature/itbl_track_anon_user' into feature/MOB-9746-Use-destinationUser-JWT-when-calling-merge
2 parents bcbe8da + b137b86 commit 02e1f42

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)