Fix for not rendering html in replies

The proper fix on master branch isn't suitable to be backported
This commit is contained in:
Tobias Fella
2024-10-06 21:58:32 +02:00
parent fb83d5cff8
commit 9b425e5a54

View File

@@ -120,7 +120,11 @@ QString ChatBarCache::relationMessage() const
if (auto event = room->findInTimeline(m_relationId); event != room->historyEdge()) {
EventHandler eventhandler(room, &**event);
return eventhandler.getMarkdownBody();
if (isEditing()) {
return eventhandler.getMarkdownBody();
} else {
return eventhandler.getMarkdownBody().toHtmlEscaped();
}
}
return {};
}