diff --git a/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift b/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift index 1ae175f2..e007ae4f 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationsViewModel.swift @@ -90,7 +90,8 @@ class NotificationsViewModel: ObservableObject { } func handleEvent(event: any StreamEvent) { - if let event = event as? StreamEventNotification { + if let event = event as? StreamEventNotification, + !notifications.contains(where: { $0.id == event.notification.id }) { notifications.insert(event.notification, at: 0) state = .display(notifications: notifications, nextPageState: .hasNextPage) }