Only try to display images if they exist
This commit is contained in:
parent
82bbdfb929
commit
64dd10a6a0
3 changed files with 14 additions and 7 deletions
|
|
@ -58,6 +58,6 @@ NotificationsManager::postNotification(const mtx::responses::Notification ¬if
|
|||
const QString messageInfo =
|
||||
(isReply ? tr("%1 replied to a message") : tr("%1 sent a message")).arg(sender);
|
||||
objCxxPostNotification(
|
||||
room_name, messageInfo, formatNotification(notification), image);
|
||||
room_name, messageInfo, formatNotification(notification), (image != nullptr && !image->isNull()) ? image : nullptr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue