aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-05-17 04:09:47 +0200
committerdec05eba <dec05eba@protonmail.com>2021-05-17 04:09:47 +0200
commit28168bb3a63b7506a79441d6ce5ed312ba6f6e1a (patch)
treec68ca0a70f3cefd4d490abcc754995641d04ddf6 /src/plugins
parente37a174979059a97c342c51b741f4f89609830c4 (diff)
Make body movement smooth, async load video related videos to allow cancellation with esc
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp
index 8679a54..1d471fc 100644
--- a/src/plugins/Matrix.cpp
+++ b/src/plugins/Matrix.cpp
@@ -920,12 +920,16 @@ namespace QuickMedia {
PluginResult MatrixInviteDetailsPage::submit(const std::string &title, const std::string&, std::vector<Tab>&) {
if(title == "Accept") {
if(matrix->join_room(room_id) == PluginResult::OK) {
+ // TODO: Wait for room invite list change from the server instead of removing room here.
+ // Then the invite list can be updated when accepting/declining an invite in another client.
invites_page->remove_body_item_by_room_id(room_id);
} else {
show_notification("QuickMedia", "Failed to accept the room invite", Urgency::CRITICAL);
}
} else if(title == "Decline") {
if(matrix->leave_room(room_id) == PluginResult::OK) {
+ // TODO: Wait for room invite list change from the server instead of removing room here.
+ // Then the invite list can be updated when accepting/declining an invite in another client.
invites_page->remove_body_item_by_room_id(room_id);
} else {
show_notification("QuickMedia", "Failed to decline the room invite", Urgency::CRITICAL);