From e77d6914723d9af61cbdaf22a20fef7b179fc391 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 6 Dec 2020 15:37:04 +0100 Subject: Matrix: readd sync sleep, might fix send failure? --- src/plugins/Matrix.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/plugins/Matrix.cpp') 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 "" "
" - "id + "/" + message->event_id + "?via=" + extract_homeserver_from_room_id(room->id) + "\">In reply to" - "user->user_id + "\">" + message->user->user_id + "
" + std::move(related_to_body) + + "id) + "/" + url_param_encode(message->event_id) + "?via=" + url_param_encode(extract_homeserver_from_room_id(room->id)) + "\">In reply to" + "user->user_id) + "\">" + url_param_encode(message->user->user_id) + "
" + std::move(related_to_body) + "
" "
" + std::move(formatted_body); } -- cgit v1.2.3