fix call notifications buttons not working

This commit is contained in:
LAGonauta 2022-02-09 21:01:26 -03:00
parent dd71e943c3
commit a583a44994

View file

@ -266,7 +266,7 @@ namespace Dino.Plugins.WindowsNotification {
.SetBody(body) .SetBody(body)
.SetAppLogo(image_path) .SetAppLogo(image_path)
.AddButton(_("Accept"), "accept-call") .AddButton(_("Accept"), "accept-call")
.AddButton(_("Deny"), "deny-call", null, ActivationType.Background) .AddButton(_("Deny"), "reject-call", null, ActivationType.Background)
.SetScenario(Scenario.IncomingCall) .SetScenario(Scenario.IncomingCall)
.Build(); .Build();
@ -274,7 +274,7 @@ namespace Dino.Plugins.WindowsNotification {
notification.Activated((argument, user_input) => { notification.Activated((argument, user_input) => {
run_on_ui(() => { run_on_ui(() => {
if (argument != null) { 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 { } else {
app.activate_action("open-conversation", conversation.id); app.activate_action("open-conversation", conversation.id);
} }