From 2c1f38b9f2db3956a47a01d0ab6c82e571339890 Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 24 Feb 2026 22:02:00 -0800 Subject: [PATCH] better notification action ordering --- service/integration/proton/messages.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/service/integration/proton/messages.go b/service/integration/proton/messages.go index 6e0b8ea..6d01189 100644 --- a/service/integration/proton/messages.go +++ b/service/integration/proton/messages.go @@ -80,6 +80,15 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) { Message: subject, Tag: "proton-" + msg.ID, Actions: []notification.Action{ + { + ID: "delete", + Label: "Delete", + Endpoint: "/api/v1/proton/delete", + Method: "POST", + Data: map[string]any{ + "uid": msg.ID, + }, + }, { ID: "archive", Label: "Archive", @@ -98,15 +107,6 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) { "uid": msg.ID, }, }, - { - ID: "delete", - Label: "Delete", - Endpoint: "/api/v1/proton/delete", - Method: "POST", - Data: map[string]any{ - "uid": msg.ID, - }, - }, }, }