Get event text in event parser function
This commit is contained in:
parent
b57b76d948
commit
df998ef671
5 changed files with 15 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue