aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-18 22:16:23 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-18 22:16:23 +0200
commitc57703dd93cd31c3bc09e1803279d266b098f353 (patch)
tree3d23d2a582c7ac501a9865d5d7983a0243685500
parentd123c41cd3ad4f0d55ae134be69e7ffd144dbb74 (diff)
Mention appendix
-rw-r--r--src/plugins/Matrix.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index db31303..bf988ca 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2824,6 +2824,7 @@ namespace QuickMedia {
std::string mention_text = "<a href=\"https://matrix.to/#/" + user_id_escaped + "\">" + display_name_escaped + "</a>";
text.replace(user_id_start, user_id.size(), mention_text);
+ index += (mention_text.size() - user_id.size());
}
}
}