Skip to content

Commit

Permalink
Post a notification when remote messages are reset
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Jul 12, 2024
1 parent 1caeeeb commit 54a2557
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/RemoteMessaging/RemoteMessagingStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ extension RemoteMessagingStore {
os_log("Failed to reset remote messages", log: log, type: .error)
}
}
notificationCenter.post(name: Notifications.remoteMessagesDidChange, object: nil)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,6 @@ public class MockRemoteMessagingStore: RemoteMessagingStoring {
public func updateRemoteMessage(withID id: String, asShown shown: Bool) {
updateRemoteMessageCalls += 1
}

public func resetRemoteMessages() {}
}

0 comments on commit 54a2557

Please sign in to comment.