grep reply when sending reply.

This commit is contained in:
Black Hat
2019-07-12 15:12:05 +08:00
parent 4c4bf2d195
commit 7b4e2cbb7f

View File

@@ -380,10 +380,10 @@ void SpectralRoom::postPlainMessage(const QString& text,
id() + "/" + replyEventId + id() + "/" + replyEventId +
"\">In reply to</a> <a href=\"https://matrix.to/#/" + "\">In reply to</a> <a href=\"https://matrix.to/#/" +
replyEvt.senderId() + "\">" + replyEvt.senderId() + replyEvt.senderId() + "\">" + replyEvt.senderId() +
"</a><br>" + eventToString(replyEvt, Qt::RichText) + "</a><br>" + utils::removeReply(eventToString(replyEvt, Qt::RichText)) +
"</blockquote></mx-reply>" + text.toHtmlEscaped()}}; "</blockquote></mx-reply>" + text.toHtmlEscaped()}};
postJson("m.room.message", postJson("m.room.message",
json); // TODO: Support other message event types? json);
return; return;
} }
@@ -415,10 +415,10 @@ void SpectralRoom::postHtmlMessage(const QString& text,
id() + "/" + replyEventId + id() + "/" + replyEventId +
"\">In reply to</a> <a href=\"https://matrix.to/#/" + "\">In reply to</a> <a href=\"https://matrix.to/#/" +
replyEvt.senderId() + "\">" + replyEvt.senderId() + replyEvt.senderId() + "\">" + replyEvt.senderId() +
"</a><br>" + eventToString(replyEvt, Qt::RichText) + "</a><br>" + utils::removeReply(eventToString(replyEvt, Qt::RichText)) +
"</blockquote></mx-reply>" + html}}; "</blockquote></mx-reply>" + html}};
postJson("m.room.message", postJson("m.room.message",
json); // TODO: Support other message event types? json);
return; return;
} }