From afd7b9ee185b2578513798e954572f3c0e6e9d19 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 Feb 2022 22:29:32 +0100 Subject: Fix matrix invite accept/decline after refactoring caused bug --- src/plugins/Matrix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index ba95a4c..6b61aed 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -843,7 +843,7 @@ namespace QuickMedia { } PluginResult MatrixInviteDetailsPage::submit(const SubmitArgs &args, std::vector&) { - if(title == "Accept") { + if(args.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. @@ -851,7 +851,7 @@ namespace QuickMedia { } else { show_notification("QuickMedia", "Failed to accept the room invite", Urgency::CRITICAL); } - } else if(title == "Decline") { + } else if(args.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. -- cgit v1.2.3