Skip to content

Commit 8024cd9

Browse files
evantk91Evan Greersumeruchat
authored
[MOB-10626] removes disable push call (#887)
Co-authored-by: Evan Greer <[email protected]> Co-authored-by: Sumeru Chatterjee <[email protected]>
1 parent ab02a03 commit 8024cd9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

swift-sdk/Internal/InternalIterableAPI.swift

+1-10
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,6 @@ final class InternalIterableAPI: NSObject, PushTrackerProtocol, AuthProvider {
233233
return SendRequestError.createErroredFuture(reason: errorMessage)
234234
}
235235

236-
// We need to call register token here so that we can trigger the device registration
237-
// with the updated notification settings
238-
239-
register(token: hexToken)
240-
241236
return requestHandler.disableDeviceForCurrentUser(hexToken: hexToken, withOnSuccess: onSuccess, onFailure: onFailure)
242237
}
243238

@@ -741,11 +736,7 @@ final class InternalIterableAPI: NSObject, PushTrackerProtocol, AuthProvider {
741736

742737
if self.isEitherUserIdOrEmailSet() {
743738
if hasStoredPermission && (storedEnabled != systemEnabled) {
744-
if !systemEnabled {
745-
self.disableDeviceForCurrentUser()
746-
} else {
747-
self.notificationStateProvider.registerForRemoteNotifications()
748-
}
739+
self.notificationStateProvider.registerForRemoteNotifications()
749740
}
750741

751742
// Always store the current state

0 commit comments

Comments
 (0)