aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe <LAGonauta@users.noreply.github.com>2020-11-30 07:51:58 -0300
committerGitHub <noreply@github.com>2020-11-30 11:51:58 +0100
commit552591640fa207f6563f10282217f37161a10043 (patch)
tree6de884374f64ef4075bac650554949830dbcb632
parent11d9855a3994bc24ff67f5c2c4933c1d9559f6c5 (diff)
downloaddino-552591640fa207f6563f10282217f37161a10043.tar.gz
dino-552591640fa207f6563f10282217f37161a10043.zip
Fix wrong actions for MUCs in Freedesktop notifier (#950)
-rw-r--r--main/src/ui/notifier_freedesktop.vala8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/ui/notifier_freedesktop.vala b/main/src/ui/notifier_freedesktop.vala
index e660ee4e..373b5239 100644
--- a/main/src/ui/notifier_freedesktop.vala
+++ b/main/src/ui/notifier_freedesktop.vala
@@ -183,10 +183,10 @@ public class Dino.Ui.FreeDesktopNotifier : NotificationProvider, Object {
GLib.Application.get_default().activate_action("open-muc-join", new Variant.int32(group_conversation.id));
});
add_action_listener(notification_id, "accept", () => {
- GLib.Application.get_default().activate_action("deny-invite", new Variant.int32(group_conversation.id));
+ GLib.Application.get_default().activate_action("open-muc-join", new Variant.int32(group_conversation.id));
});
add_action_listener(notification_id, "deny", () => {
- GLib.Application.get_default().activate_action("open-muc-join", new Variant.int32(group_conversation.id));
+ GLib.Application.get_default().activate_action("deny-invite", new Variant.int32(group_conversation.id));
});
} catch (Error e) {
warning("Failed showing muc invite notification: %s", e.message);
@@ -211,10 +211,10 @@ public class Dino.Ui.FreeDesktopNotifier : NotificationProvider, Object {
uint32 notification_id = dbus_notifications.notify("Dino", 0, "", summary, body, actions, hash_table, 0);
add_action_listener(notification_id, "accept", () => {
- GLib.Application.get_default().activate_action("deny-invite", new Variant.int32(conversation.id));
+ GLib.Application.get_default().activate_action("accept-voice-request", new Variant.int32(conversation.id));
});
add_action_listener(notification_id, "deny", () => {
- GLib.Application.get_default().activate_action("open-muc-join", new Variant.int32(conversation.id));
+ GLib.Application.get_default().activate_action("deny-voice-request", new Variant.int32(conversation.id));
});
} catch (Error e) {
warning("Failed showing voice request notification: %s", e.message);