diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index f8a88b1..72748cf 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -1147,7 +1147,8 @@ namespace QuickMedia { } sync_end: - {} + if(sync_running) + std::this_thread::sleep_for(std::chrono::milliseconds(500)); } }); } @@ -2624,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/#/" + 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) + + "<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) + "</blockquote>" "</mx-reply>" + std::move(formatted_body); } |