Fix for not rendering html in replies
The proper fix on master branch isn't suitable to be backported
This commit is contained in:
@@ -120,7 +120,11 @@ QString ChatBarCache::relationMessage() const
|
|||||||
|
|
||||||
if (auto event = room->findInTimeline(m_relationId); event != room->historyEdge()) {
|
if (auto event = room->findInTimeline(m_relationId); event != room->historyEdge()) {
|
||||||
EventHandler eventhandler(room, &**event);
|
EventHandler eventhandler(room, &**event);
|
||||||
return eventhandler.getMarkdownBody();
|
if (isEditing()) {
|
||||||
|
return eventhandler.getMarkdownBody();
|
||||||
|
} else {
|
||||||
|
return eventhandler.getMarkdownBody().toHtmlEscaped();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user