Skip to content
Snippets Groups Projects
Verified Commit 8d3e463f authored by Loren Burkholder's avatar Loren Burkholder Committed by Nicolas Werner
Browse files

Use plaintext for Windows notifications

parent 3dcbac88
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,8 @@
#include "notifications/Manager.h"
#include "wintoastlib.h"
#include <QTextDocumentFragment>
#include "Cache.h"
#include "EventAccessors.h"
#include "MatrixClient.h"
......@@ -54,7 +56,7 @@ NotificationsManager::postNotification(const mtx::responses::Notification &notif
cache::displayName(QString::fromStdString(notification.room_id),
QString::fromStdString(mtx::accessors::sender(notification.event)));
const auto text = utils::event_body(notification.event);
const auto formattedText = cmark_markdown_to_html(text.toStdString().c_str(), text.length(), CMARK_OPT_UNSAFE);
const auto formattedText = QTextDocumentFragment::fromHtml(utils::markdownToHtml(text)).toPlainText();
if (!isInitialized)
init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment