diff --git a/src/spectralroom.cpp b/src/spectralroom.cpp
index 7e4b0efa0..520752a83 100644
--- a/src/spectralroom.cpp
+++ b/src/spectralroom.cpp
@@ -380,10 +380,10 @@ void SpectralRoom::postPlainMessage(const QString& text,
id() + "/" + replyEventId +
"\">In reply to " + replyEvt.senderId() +
- "
" + eventToString(replyEvt, Qt::RichText) +
+ "
" + utils::removeReply(eventToString(replyEvt, Qt::RichText)) +
"" + text.toHtmlEscaped()}};
postJson("m.room.message",
- json); // TODO: Support other message event types?
+ json);
return;
}
@@ -415,10 +415,10 @@ void SpectralRoom::postHtmlMessage(const QString& text,
id() + "/" + replyEventId +
"\">In reply to " + replyEvt.senderId() +
- "
" + eventToString(replyEvt, Qt::RichText) +
+ "
" + utils::removeReply(eventToString(replyEvt, Qt::RichText)) +
"" + html}};
postJson("m.room.message",
- json); // TODO: Support other message event types?
+ json);
return;
}