diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-02-20 13:16:43 -0500 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2021-03-17 19:17:15 +0100 |
commit | df998ef67194bdd633df163eef53ec628fc8e090 (patch) | |
tree | 38f65c6bac70dbec2c1ff5e467868b6530dec9e6 /src/notifications/ManagerWin.cpp | |
parent | Add "replied" marker to regular reply messages (diff) | |
download | nheko-df998ef67194bdd633df163eef53ec628fc8e090.tar.xz |
Get event text in event parser function
Diffstat (limited to 'src/notifications/ManagerWin.cpp')
-rw-r--r-- | src/notifications/ManagerWin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/notifications/ManagerWin.cpp b/src/notifications/ManagerWin.cpp index 3ab85a5f..47b4c178 100644 --- a/src/notifications/ManagerWin.cpp +++ b/src/notifications/ManagerWin.cpp @@ -7,6 +7,7 @@ #include <QTextDocumentFragment> +#include "EventAccessors.h" #include "Utils.h" using namespace WinToastLib; @@ -77,7 +78,8 @@ NotificationsManager::removeNotification(const QString &, const QString &) {} 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(); } + |