mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Notification Placeholder Image Caching (#1248)
* placeholder image caching * code improvement * code is now clearer
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user