mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-24 16:51:19 +01:00
add category to notifications
This commit is contained in:
parent
3898edc8b1
commit
9a49c6d906
@ -57,6 +57,7 @@ private extension UserNotificationManager {
|
|||||||
content.summaryArgumentCount = 1
|
content.summaryArgumentCount = 1
|
||||||
content.sound = UNNotificationSound.default
|
content.sound = UNNotificationSound.default
|
||||||
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
|
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
|
||||||
|
content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY"
|
||||||
if let attachment = thumbnailAttachment(for: article, webFeed: webFeed) {
|
if let attachment = thumbnailAttachment(for: article, webFeed: webFeed) {
|
||||||
content.attachments.append(attachment)
|
content.attachments.append(attachment)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user