1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineView.cpp b/src/timeline/TimelineView.cpp
index 87fa18db..e50bfa21 100644
--- a/src/timeline/TimelineView.cpp
+++ b/src/timeline/TimelineView.cpp
@@ -1237,7 +1237,7 @@ toRoomMessage<mtx::events::msg::Emote>(const PendingMessage &m)
mtx::events::msg::Emote emote;
emote.body = utils::stripHtml(html);
- emote.formatted_body = html;
+ emote.formatted_body = html.toStdString();
return emote;
}
@@ -1262,7 +1262,7 @@ toRoomMessage<mtx::events::msg::Text>(const PendingMessage &m)
mtx::events::msg::Text text;
text.body = utils::stripHtml(html);
- text.formatted_body = html;
+ text.formatted_body = html.toStdString();
return text;
}
|