From 92a5b10223c770c3dea253379cb9bb04483ed7b6 Mon Sep 17 00:00:00 2001 From: Diggory Laycock Date: Sat, 1 Oct 2022 15:20:53 +0100 Subject: [PATCH] Moves the comment about the source of the sound from the UserNotificationManager and into the AppAssets struct. --- Mac/AppAssets.swift | 1 + Shared/UserNotifications/UserNotificationManager.swift | 1 - iOS/AppAssets.swift | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Mac/AppAssets.swift b/Mac/AppAssets.swift index 84f6b6f2a..1c37e71fd 100644 --- a/Mac/AppAssets.swift +++ b/Mac/AppAssets.swift @@ -296,6 +296,7 @@ struct AppAssets { } static var notificationSoundBlipFileName: String = { + // https://freesound.org/people/cabled_mess/sounds/350862/ return "notificationSoundBlip.caf" }() diff --git a/Shared/UserNotifications/UserNotificationManager.swift b/Shared/UserNotifications/UserNotificationManager.swift index d2bbae1fe..2a20f693b 100644 --- a/Shared/UserNotifications/UserNotificationManager.swift +++ b/Shared/UserNotifications/UserNotificationManager.swift @@ -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" diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index 61889bce0..8a3f89746 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -326,6 +326,7 @@ struct AppAssets { } static var notificationSoundBlipFileName: String = { + // https://freesound.org/people/cabled_mess/sounds/350862/ return "notificationSoundBlip.caf" }()