diff options
Diffstat (limited to 'src/notifications/ManagerLinux.cpp')
-rw-r--r-- | src/notifications/ManagerLinux.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notifications/ManagerLinux.cpp b/src/notifications/ManagerLinux.cpp index 11a7c1a1..75ba1886 100644 --- a/src/notifications/ManagerLinux.cpp +++ b/src/notifications/ManagerLinux.cpp @@ -107,7 +107,8 @@ NotificationsManager::postNotification(const mtx::responses::Notification ¬if QString template_ = getMessageTemplate(notification); // TODO: decrypt this message if the decryption setting is on in the UserSettings if (std::holds_alternative<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>( - notification.event)) { + notification.event) || + !template_.contains("%2")) { postNotif(template_); return; } @@ -115,7 +116,7 @@ NotificationsManager::postNotification(const mtx::responses::Notification ¬if if (hasMarkup_) { if (hasImages_ && (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image || - mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image)) { + mtx::accessors::event_type(notification.event) == mtx::events::EventType::Sticker)) { MxcImageProvider::download( QString::fromStdString(mtx::accessors::url(notification.event)) .remove(QStringLiteral("mxc://")), |