From c9c0bda69ed10989d62cdc4d7db74d29e5ef42b9 Mon Sep 17 00:00:00 2001 From: Stanislas Date: Fri, 6 Jan 2023 21:20:40 +0100 Subject: [PATCH] Skip unsupported notifications (#35) --- .../Sources/Notifications/NotificationsListView.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Packages/Notifications/Sources/Notifications/NotificationsListView.swift b/Packages/Notifications/Sources/Notifications/NotificationsListView.swift index 12202a93..9e56eb49 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationsListView.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationsListView.swift @@ -80,9 +80,11 @@ public struct NotificationsListView: View { message: "Notifications? What notifications? Your notification inbox is looking so empty. Keep on being awesome! 📱😎") } else { ForEach(notifications) { notification in - NotificationRowView(notification: notification) - Divider() - .padding(.vertical, .dividerPadding) + if notification.supportedType != nil { + NotificationRowView(notification: notification) + Divider() + .padding(.vertical, .dividerPadding) + } } }