2021-02-16 00:36:10 +01:00
|
|
|
#include "Manager.h"
|
|
|
|
|
|
|
|
#include <QTextDocumentFragment>
|
|
|
|
|
2021-02-20 19:16:43 +01:00
|
|
|
#include "EventAccessors.h"
|
2021-02-16 00:36:10 +01:00
|
|
|
#include "Utils.h"
|
|
|
|
|
|
|
|
QString
|
2021-02-20 19:16:43 +01:00
|
|
|
NotificationsManager::formatNotification(const mtx::events::collections::TimelineEvents &e)
|
2021-02-16 00:36:10 +01:00
|
|
|
{
|
2021-02-20 19:16:43 +01:00
|
|
|
return QTextDocumentFragment::fromHtml(mtx::accessors::formattedBodyWithFallback(e)).toPlainText();
|
2021-02-16 00:36:10 +01:00
|
|
|
}
|