summary refs log tree commit diff
path: root/src/notifications/ManagerWin.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/ManagerWin.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/ManagerWin.cpp')
-rw-r--r--src/notifications/ManagerWin.cpp6
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();
 }
+