Plumb the adding of message edit text back in.
This should also improve edits where there is code or quotes.
This commit is contained in:
@@ -135,7 +135,23 @@ QString ChatBarCache::relationMessage() const
|
||||
return {};
|
||||
}
|
||||
if (auto [event, _] = m_room->getEvent(m_relationId); event != nullptr) {
|
||||
return EventHandler::markdownBody(event);
|
||||
return EventHandler::rawMessageBody(*event);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
QList<MessageComponent> ChatBarCache::relationComponents() const
|
||||
{
|
||||
if (!m_room) {
|
||||
qCWarning(ChatBar) << "ChatBarCache:" << __FUNCTION__ << "called after room was deleted";
|
||||
return {};
|
||||
}
|
||||
if (m_relationId.isEmpty()) {
|
||||
return {};
|
||||
}
|
||||
if (auto [event, _] = m_room->getEvent(m_relationId); event != nullptr) {
|
||||
TextHandler handler;
|
||||
return TextHandler().textComponents(EventHandler::rawMessageBody(*event), EventHandler::messageBodyInputFormat(*event), m_room, event);
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user