Skip to content

Commit bc9112c

Browse files
committed
Fix a bug to fetch user after create user is made
* After a Create User is successful, we should fetch the user for hydration. There was a bug introduced in an earlier commit that checked the request payload for the OSID, when it should be retrieved from the server response
1 parent 0b6ddc8 commit bc9112c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ extension OSUserExecutor {
230230
// Fetch the user only if its the current user and non-anonymous
231231
if OneSignalUserManagerImpl.sharedInstance.isCurrentUser(request.identityModel),
232232
let identity = request.parameters?["identity"] as? [String: String],
233-
let onesignalId = identity[OS_ONESIGNAL_ID],
233+
let onesignalId = request.identityModel.onesignalId,
234234
identity[OS_EXTERNAL_ID] != nil {
235235
fetchUser(aliasLabel: OS_ONESIGNAL_ID, aliasId: onesignalId, identityModel: request.identityModel)
236236
} else {

0 commit comments

Comments
 (0)