aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Matrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Matrix.cpp')
-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);