aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-06 15:37:04 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-06 15:37:04 +0100
commite77d6914723d9af61cbdaf22a20fef7b179fc391 (patch)
treebdea0c3d5f49551d29f58505d81b37801bd79cee /src/plugins/Matrix.cpp
parenta8e35756f9e2b2a94d76c88e699692aef05555a9 (diff)
Matrix: readd sync sleep, might fix send failure?
Diffstat (limited to 'src/plugins/Matrix.cpp')
-rw-r--r--src/plugins/Matrix.cpp7
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);
}