aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-16 22:29:32 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-16 22:29:32 +0100
commitafd7b9ee185b2578513798e954572f3c0e6e9d19 (patch)
tree513fe1f1d4a11dee75a038410d84aaefcb1f3030 /src/plugins
parentd89ea960364f6518f412897d0601a1161b5aee6a (diff)
Fix matrix invite accept/decline after refactoring caused bug
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Matrix.cpp4
1 files changed, 2 insertions, 2 deletions
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<Tab>&) {
- 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.