From 362986e73afc76b009f77e4d2813f25485085c9a Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 17 Aug 2022 10:02:23 +1000 Subject: [PATCH] Fixed a bug where the notification sound "preview" playing wasn't working --- SessionMessagingKit/Utilities/Preferences.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SessionMessagingKit/Utilities/Preferences.swift b/SessionMessagingKit/Utilities/Preferences.swift index 868a37cc2..ff19030cf 100644 --- a/SessionMessagingKit/Utilities/Preferences.swift +++ b/SessionMessagingKit/Utilities/Preferences.swift @@ -234,7 +234,7 @@ public enum Preferences { let url: URL = URL(fileURLWithPath: filename) return Bundle.main.url( - forResource: url.deletingPathExtension().absoluteString, + forResource: url.deletingPathExtension().path, withExtension: url.pathExtension ) }