Skip to content

Commit

Permalink
force a replacement for the notification placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Sep 1, 2023
1 parent 2165f88 commit bb928ea
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb928ea

Please sign in to comment.