summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-11 19:56:30 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-12 17:14:17 +0100
commit27fe0a45b634d59a88fdb97cab4c0b6ab9009bf3 (patch)
tree8ee12627a6df30192e3f93ec1978fae20c51c8c5 /src/timeline/TimelineModel.cpp
parentTranslated using Weblate (German) (diff)
downloadnheko-27fe0a45b634d59a88fdb97cab4c0b6ab9009bf3.tar.xz
Disable room pings in replies
Diffstat (limited to 'src/timeline/TimelineModel.cpp')
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 7afc75f7..ddec7287 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -883,11 +883,13 @@ TimelineModel::relatedInfo(QString id)
         if (related.quoted_body.startsWith("\n"))
                 related.quoted_body.remove(0, 1);
         related.quoted_body = utils::getQuoteBody(related);
+        related.quoted_body.replace("@room", QString::fromUtf8("@\u2060room"));
 
         // get quoted body and strip reply fallback
         related.quoted_formatted_body = mtx::accessors::formattedBodyWithFallback(*event);
         related.quoted_formatted_body.remove(QRegularExpression(
           "<mx-reply>.*</mx-reply>", QRegularExpression::DotMatchesEverythingOption));
+        related.quoted_formatted_body.replace("@room", "@\u2060aroom");
         related.room = room_id_;
 
         return related;