Skip to content

Commit

Permalink
fire RMF message updated notification if we make any change to the st…
Browse files Browse the repository at this point in the history
…ore (#2891)

Task/Issue URL: https://app.asana.com/0/414235014887631/1207400212393238/f
Tech Design URL:
CC:

Description:
Refresh if there's any save to the RMF store.
  • Loading branch information
brindy authored May 29, 2024
1 parent c57d4da commit 2815a40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DuckDuckGo/RemoteMessagingStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,13 @@ final class RemoteMessagingStore: RemoteMessagingStoring {
deleteScheduledRemoteMessages()
save(remoteMessage: remoteMessage)

DispatchQueue.main.async {
self.notificationCenter.post(name: RemoteMessaging.Notifications.remoteMessagesDidChange, object: nil)
}
} else {
deleteScheduledRemoteMessages()
}

DispatchQueue.main.async {
self.notificationCenter.post(name: RemoteMessaging.Notifications.remoteMessagesDidChange, object: nil)
}
}
}

Expand Down

0 comments on commit 2815a40

Please sign in to comment.