aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-14 08:18:24 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-14 08:18:24 +0100
commit88fed1806e56181a9161c20bcd93cd06d52a5533 (patch)
tree99f5d1ed9901c0de53b0f07b7f34ae9127a4db70 /src/plugins/Matrix.cpp
parent484571d6f5bc71626f320b4dc06b43331d7f1240 (diff)
Attempt to fix spastic body when using embedded items and loading them in render callback, fix gif play next on 4chan.. test
Diffstat (limited to 'src/plugins/Matrix.cpp')
-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 a39c247..44dfa3a 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -2623,6 +2623,7 @@ namespace QuickMedia {
html_escape_sequences(formatted_body);
html_escape_sequences(related_to_body);
// TODO: Add keybind to navigate to the reply message, which would also depend on this formatting.
+ // Note: user id and event id is not url escaped here on purpose, because that messes up riot.im replies for certain user ids...
return "<mx-reply>"
"<blockquote>"
"<a href=\"https://matrix.to/#/" + room->id + "/" + message->event_id + "?via=" + extract_homeserver_from_room_id(room->id) + "\">In reply to</a>"