mirror of
https://github.com/lone-cloud/prism
synced 2026-06-03 08:43:10 -07:00
better notification action ordering
This commit is contained in:
parent
ce18b03394
commit
b3bb864fac
1 changed files with 9 additions and 9 deletions
|
|
@ -80,6 +80,15 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) {
|
||||||
Message: subject,
|
Message: subject,
|
||||||
Tag: "proton-" + msg.ID,
|
Tag: "proton-" + msg.ID,
|
||||||
Actions: []notification.Action{
|
Actions: []notification.Action{
|
||||||
|
{
|
||||||
|
ID: "delete",
|
||||||
|
Label: "Delete",
|
||||||
|
Endpoint: "/api/v1/proton/delete",
|
||||||
|
Method: "POST",
|
||||||
|
Data: map[string]any{
|
||||||
|
"uid": msg.ID,
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ID: "archive",
|
ID: "archive",
|
||||||
Label: "Archive",
|
Label: "Archive",
|
||||||
|
|
@ -98,15 +107,6 @@ func (m *Monitor) sendNotification(msg *protonmail.Message) {
|
||||||
"uid": msg.ID,
|
"uid": msg.ID,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ID: "delete",
|
|
||||||
Label: "Delete",
|
|
||||||
Endpoint: "/api/v1/proton/delete",
|
|
||||||
Method: "POST",
|
|
||||||
Data: map[string]any{
|
|
||||||
"uid": msg.ID,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue