Get event text in event parser function

This commit is contained in:
Loren Burkholder 2021-02-20 13:16:43 -05:00 committed by Nicolas Werner
parent b57b76d948
commit df998ef671
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
5 changed files with 15 additions and 9 deletions

View file

@ -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();
}