fix(ntfy): Clear notification after any action button is pressed

Nexcloud removes notifications when anything is clickes so we should do
the same.
This commit is contained in:
Jiří Štefka 2025-01-14 03:28:13 +01:00
parent e7b66df059
commit 00ef0d7861
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE

View file

@ -25,7 +25,8 @@ def parse_actions(actions: list) -> list:
"action": "http", "action": "http",
"label": f"{action['label']}", "label": f"{action['label']}",
"url": f"{action['link']}", "url": f"{action['link']}",
"method": f"{action['type']}" "method": f"{action['type']}",
"clear": True
} }
# The `action['type']` is documented to be a HTTP request. # The `action['type']` is documented to be a HTTP request.