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, - }, - }, }, }