From d41da79c722a5616169f561feb20a915d8330f13 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 3 Oct 2019 11:44:54 -0500 Subject: [PATCH] Don't send article notification if the article has been read on another device --- Shared/UserNotifications/UserNotificationManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shared/UserNotifications/UserNotificationManager.swift b/Shared/UserNotifications/UserNotificationManager.swift index 5ecf2f9b7..5857b1abe 100644 --- a/Shared/UserNotifications/UserNotificationManager.swift +++ b/Shared/UserNotifications/UserNotificationManager.swift @@ -24,7 +24,7 @@ final class UserNotificationManager: NSObject { } for article in articles { - if let feed = article.feed, feed.isNotifyAboutNewArticles ?? false { + if !article.status.read, let feed = article.feed, feed.isNotifyAboutNewArticles ?? false { sendNotification(feed: feed, article: article) } }