Skip unsupported notifications (#35)

This commit is contained in:
Stanislas 2023-01-06 21:20:40 +01:00 committed by GitHub
parent 79febd92e7
commit c9c0bda69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}
}
}