better notification action ordering

This commit is contained in:
lone-cloud 2026-02-24 22:02:00 -08:00
parent ce18b03394
commit b3bb864fac

View file

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