From 28168bb3a63b7506a79441d6ce5ed312ba6f6e1a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 17 May 2021 04:09:47 +0200 Subject: Make body movement smooth, async load video related videos to allow cancellation with esc --- src/plugins/Matrix.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/Matrix.cpp') 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&) { 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); -- cgit v1.2.3