aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.