Don't send article notification if the article has been read on another device
This commit is contained in:
parent
9203444552
commit
d41da79c72
|
@ -24,7 +24,7 @@ final class UserNotificationManager: NSObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
for article in articles {
|
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)
|
sendNotification(feed: feed, article: article)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue