mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 04:18:31 +00:00
Regenerate thumbnails to see if it helps with phantom avatar switching. (#3503)
This commit is contained in:
@@ -184,7 +184,7 @@ extension UNMutableNotificationContent {
|
|||||||
private func getPlaceholderAvatarImageData(name: String, id: String) async -> Data? {
|
private func getPlaceholderAvatarImageData(name: String, id: String) async -> Data? {
|
||||||
// The version value is used in case the design of the placeholder is updated to force a replacement
|
// The version value is used in case the design of the placeholder is updated to force a replacement
|
||||||
let shouldFlipAvatar = shouldFlipAvatar()
|
let shouldFlipAvatar = shouldFlipAvatar()
|
||||||
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V8F" : "V8")"
|
let prefix = "notification_placeholder\(shouldFlipAvatar ? "V9F" : "V9")"
|
||||||
let fileName = "\(prefix)_\(name)_\(id).png"
|
let fileName = "\(prefix)_\(name)_\(id).png"
|
||||||
if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) {
|
if let data = try? Data(contentsOf: URL.temporaryDirectory.appendingPathComponent(fileName)) {
|
||||||
MXLog.info("Found existing notification icon placeholder")
|
MXLog.info("Found existing notification icon placeholder")
|
||||||
|
|||||||
Reference in New Issue
Block a user