From 7b4e2cbb7f1c15f5bc0d403f59567dbef3624b50 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Fri, 12 Jul 2019 15:12:05 +0800 Subject: [PATCH] grep reply when sending reply. --- src/spectralroom.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }