diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-12-08 05:40:44 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-12-08 05:40:44 +0100 |
commit | 484571d6f5bc71626f320b4dc06b43331d7f1240 (patch) | |
tree | e1f2262c28eaa823e9ad9ebdf9556c8076bc6b43 /src/plugins | |
parent | a76a27cf3eded668f23d6c39f3026e75884678c0 (diff) |
Matrix: remove user id escaping in replies (bug) to make replies work in riot.im...
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 72748cf..a39c247 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -2625,8 +2625,8 @@ namespace QuickMedia { // TODO: Add keybind to navigate to the reply message, which would also depend on this formatting. return "<mx-reply>" "<blockquote>" - "<a href=\"https://matrix.to/#/" + url_param_encode(room->id) + "/" + url_param_encode(message->event_id) + "?via=" + url_param_encode(extract_homeserver_from_room_id(room->id)) + "\">In reply to</a>" - "<a href=\"https://matrix.to/#/" + url_param_encode(message->user->user_id) + "\">" + url_param_encode(message->user->user_id) + "</a><br>" + std::move(related_to_body) + + "<a href=\"https://matrix.to/#/" + room->id + "/" + message->event_id + "?via=" + extract_homeserver_from_room_id(room->id) + "\">In reply to</a>" + "<a href=\"https://matrix.to/#/" + message->user->user_id + "\"> " + message->user->user_id + "</a><br>" + std::move(related_to_body) + "</blockquote>" "</mx-reply>" + std::move(formatted_body); } |