From bb928ea4f8c24fba89924b783f78a2f200523823 Mon Sep 17 00:00:00 2001 From: Mauro Romito Date: Thu, 31 Aug 2023 20:08:23 +0200 Subject: [PATCH] force a replacement for the notification placeholders --- ElementX/Sources/Other/Extensions/UNNotificationContent.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ElementX/Sources/Other/Extensions/UNNotificationContent.swift b/ElementX/Sources/Other/Extensions/UNNotificationContent.swift index 6cbbbcc3ae..025d67eb9e 100644 --- a/ElementX/Sources/Other/Extensions/UNNotificationContent.swift +++ b/ElementX/Sources/Other/Extensions/UNNotificationContent.swift @@ -184,7 +184,8 @@ extension UNMutableNotificationContent { } private func getPlaceholderAvatarImageData(name: String, id: String) async -> Data? { - let fileName = "notification_placeholder_\(name)_\(id).png" + // The version value is used in case the design of the placeholder is updated to force a replacement + let fileName = "notification_placeholderV2_\(name)_\(id).png" if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) { MXLog.info("Found existing notification icon placeholder") return data