From 552591640fa207f6563f10282217f37161a10043 Mon Sep 17 00:00:00 2001 From: Felipe Date: Mon, 30 Nov 2020 07:51:58 -0300 Subject: Fix wrong actions for MUCs in Freedesktop notifier (#950) --- main/src/ui/notifier_freedesktop.vala | 8 ++++---- 1 file 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); -- cgit v1.2.3-70-g09d2