summary refs log tree commit diff
path: root/src/notifications/ManagerMac.cpp
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-02-20 13:16:43 -0500
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-17 19:17:15 +0100
commitdf998ef67194bdd633df163eef53ec628fc8e090 (patch)
tree38f65c6bac70dbec2c1ff5e467868b6530dec9e6 /src/notifications/ManagerMac.cpp
parentAdd "replied" marker to regular reply messages (diff)
downloadnheko-df998ef67194bdd633df163eef53ec628fc8e090.tar.xz
Get event text in event parser function
Diffstat (limited to 'src/notifications/ManagerMac.cpp')
-rw-r--r--src/notifications/ManagerMac.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/notifications/ManagerMac.cpp b/src/notifications/ManagerMac.cpp

index c75d2283..a74df2c7 100644 --- a/src/notifications/ManagerMac.cpp +++ b/src/notifications/ManagerMac.cpp
@@ -2,10 +2,11 @@ #include <QTextDocumentFragment> +#include "EventAccessors.h" #include "Utils.h" QString -NotificationsManager::formatNotification(const QString &text) +NotificationsManager::formatNotification(const mtx::events::collections::TimelineEvents &e) { - return QTextDocumentFragment::fromHtml(text).toPlainText(); + return QTextDocumentFragment::fromHtml(mtx::accessors::formattedBodyWithFallback(e)).toPlainText(); }