summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-02-20 11:57:42 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:17:14 +0100
commit4150d75be7c8945808434d67bd23bb688707af29 (patch)
treecb6d761bf6d99b32c9eb446040ed3f771f10487d /src
parentFormat notifications according to the FreeDesktop specification (diff)
downloadnheko-4150d75be7c8945808434d67bd23bb688707af29.tar.xz
Only HTML-format the body if it should be formatted
Diffstat (limited to 'src')
-rw-r--r--src/notifications/Manager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/notifications/Manager.cpp b/src/notifications/Manager.cpp

index 083107fb..dda06299 100644 --- a/src/notifications/Manager.cpp +++ b/src/notifications/Manager.cpp
@@ -19,9 +19,11 @@ NotificationsManager::postNotification(const mtx::responses::Notification &notif QString text; if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote) text = - "* " + sender + " " + formatNotification(utils::event_body(notification.event)); + formatNotification("* " + sender + " " + + mtx::accessors::formattedBodyWithFallback(notification.event)); else - text = sender + ": " + formatNotification(utils::event_body(notification.event)); + text = formatNotification( + sender + ": " + mtx::accessors::formattedBodyWithFallback(notification.event)); systemPostNotification(room_id, event_id, room_name, sender, text, icon); }