Don't send article notification if the article has been read on another device

This commit is contained in:
Maurice Parker 2019-10-03 11:44:54 -05:00
parent 9203444552
commit d41da79c72
1 changed files with 1 additions and 1 deletions

View File

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