mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 06:08:48 +03:00
Only HTML-format the body if it should be formatted
This commit is contained in:
parent
c38c6fe49e
commit
4150d75be7
1 changed files with 4 additions and 2 deletions
|
@ -19,9 +19,11 @@ NotificationsManager::postNotification(const mtx::responses::Notification ¬if
|
||||||
QString text;
|
QString text;
|
||||||
if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote)
|
if (mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Emote)
|
||||||
text =
|
text =
|
||||||
"* " + sender + " " + formatNotification(utils::event_body(notification.event));
|
formatNotification("* " + sender + " " +
|
||||||
|
mtx::accessors::formattedBodyWithFallback(notification.event));
|
||||||
else
|
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);
|
systemPostNotification(room_id, event_id, room_name, sender, text, icon);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue