Notification Placeholder Image Caching (#1248)

* placeholder image caching

* code improvement

* code is now clearer
This commit is contained in:
Mauro
2023-07-05 14:28:45 +02:00
committed by GitHub
parent d15d0e0070
commit 29d90dd29e
4 changed files with 47 additions and 16 deletions
@@ -163,8 +163,9 @@ extension NotificationItemProxyProtocol {
return notification
}
var requiresMediaProvider: Bool {
if senderAvatarMediaSource != nil || roomAvatarMediaSource != nil {
var hasMedia: Bool {
if (isDirect && senderAvatarMediaSource != nil) ||
(!isDirect && roomAvatarMediaSource != nil) {
return true
}
switch event.type {