mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Moves the comment about the source of the sound from the UserNotificationManager and into the AppAssets struct.
This commit is contained in:
@@ -296,6 +296,7 @@ struct AppAssets {
|
||||
}
|
||||
|
||||
static var notificationSoundBlipFileName: String = {
|
||||
// https://freesound.org/people/cabled_mess/sounds/350862/
|
||||
return "notificationSoundBlip.caf"
|
||||
}()
|
||||
|
||||
|
||||
@@ -62,7 +62,6 @@ private extension UserNotificationManager {
|
||||
}
|
||||
content.body = ArticleStringFormatter.truncatedSummary(article)
|
||||
content.threadIdentifier = webFeed.webFeedID
|
||||
// https://freesound.org/people/cabled_mess/sounds/350862/
|
||||
content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: AppAssets.notificationSoundBlipFileName))
|
||||
content.userInfo = [UserInfoKey.articlePath: article.pathUserInfo]
|
||||
content.categoryIdentifier = "NEW_ARTICLE_NOTIFICATION_CATEGORY"
|
||||
|
||||
@@ -326,6 +326,7 @@ struct AppAssets {
|
||||
}
|
||||
|
||||
static var notificationSoundBlipFileName: String = {
|
||||
// https://freesound.org/people/cabled_mess/sounds/350862/
|
||||
return "notificationSoundBlip.caf"
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user