From a583a44994324004351883cd88a62210bbcfcd05 Mon Sep 17 00:00:00 2001 From: LAGonauta Date: Wed, 9 Feb 2022 21:01:26 -0300 Subject: [PATCH] fix call notifications buttons not working --- .../windows-notification/src/win_notification_provider.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/windows-notification/src/win_notification_provider.vala b/plugins/windows-notification/src/win_notification_provider.vala index 4ced17e7..f21933f5 100644 --- a/plugins/windows-notification/src/win_notification_provider.vala +++ b/plugins/windows-notification/src/win_notification_provider.vala @@ -266,7 +266,7 @@ namespace Dino.Plugins.WindowsNotification { .SetBody(body) .SetAppLogo(image_path) .AddButton(_("Accept"), "accept-call") - .AddButton(_("Deny"), "deny-call", null, ActivationType.Background) + .AddButton(_("Deny"), "reject-call", null, ActivationType.Background) .SetScenario(Scenario.IncomingCall) .Build(); @@ -274,7 +274,7 @@ namespace Dino.Plugins.WindowsNotification { notification.Activated((argument, user_input) => { run_on_ui(() => { if (argument != null) { - app.activate_action(argument, call.id); + app.activate_action(argument, new Variant.tuple(new Variant[] { new Variant.int32(conversation.id), new Variant.int32(call.id) })); } else { app.activate_action("open-conversation", conversation.id); }