From 4182c155008f23599c5ca8ef58bf3f96e2645338 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 26 Jun 2023 20:38:10 -0700 Subject: [PATCH] Fix invalid status notifications not being removed Closes #416 --- .../Notifications/NotificationsCollectionViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift b/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift index de95da97..b5c77334 100644 --- a/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift +++ b/Tusker/Screens/Notifications/NotificationsCollectionViewController.swift @@ -404,7 +404,7 @@ extension NotificationsCollectionViewController { private func validateNotifications(_ notifications: [Pachyderm.Notification]) -> [Pachyderm.Notification] { return notifications.compactMap { notif in - if notif.status == nil && (notif.kind == .mention || notif.kind == .reblog || notif.kind == .favourite) { + if notif.status == nil && (notif.kind == .mention || notif.kind == .reblog || notif.kind == .favourite || notif.kind == .status) { let crumb = Breadcrumb(level: .fatal, category: "notifications") crumb.data = [ "id": notif.id,