Skip to content

Commit 700105c

Browse files
committed
clean up duplicated setIsPushEnabled call
Database.setAppState(appState) already updates lastKnownPushEnabled.
1 parent 8e4235a commit 700105c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/shared/helpers/EventHelper.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default class EventHelper {
5151
// update notification_types via core module
5252
await context.subscriptionManager.updateNotificationTypes()
5353

54-
await Database.setIsPushEnabled(isPushEnabled);
5554
appState.lastKnownPushEnabled = isPushEnabled;
5655
appState.lastKnownPushToken = currentPushToken;
5756
appState.lastKnownPushId = pushSubscriptionId;

0 commit comments

Comments
 (0)