Fix broken reply on gcc.

This commit is contained in:
Black
2020-01-22 19:13:37 -08:00
parent b94ad5baed
commit 7e760e410d

View File

@@ -496,9 +496,9 @@ void SpectralRoom::postPlainMessage(const QString& text,
{"body", "> <" + replyEvt.senderId() + "> " + eventToString(replyEvt) + "\n\n" + text}, {"body", "> <" + replyEvt.senderId() + "> " + eventToString(replyEvt) + "\n\n" + text},
{"format", "org.matrix.custom.html"}, {"format", "org.matrix.custom.html"},
{"m.relates_to", {"m.relates_to",
{ QJsonObject {
{"m.in_reply_to", {"m.in_reply_to",
{ QJsonObject {
{"event_id", replyEventId} {"event_id", replyEventId}
} }
} }
@@ -542,9 +542,9 @@ void SpectralRoom::postHtmlMessage(const QString& text,
{"body", "> <" + replyEvt.senderId() + "> " + eventToString(replyEvt) + "\n\n" + text}, {"body", "> <" + replyEvt.senderId() + "> " + eventToString(replyEvt) + "\n\n" + text},
{"format", "org.matrix.custom.html"}, {"format", "org.matrix.custom.html"},
{"m.relates_to", {"m.relates_to",
{ QJsonObject {
{"m.in_reply_to", {"m.in_reply_to",
{ QJsonObject {
{"event_id", replyEventId} {"event_id", replyEventId}
} }
} }