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:
parent
e7b66df059
commit
00ef0d7861
1 changed files with 2 additions and 1 deletions
3
main.py
3
main.py
|
@ -25,7 +25,8 @@ def parse_actions(actions: list) -> list:
|
|||
"action": "http",
|
||||
"label": f"{action['label']}",
|
||||
"url": f"{action['link']}",
|
||||
"method": f"{action['type']}"
|
||||
"method": f"{action['type']}",
|
||||
"clear": True
|
||||
}
|
||||
|
||||
# The `action['type']` is documented to be a HTTP request.
|
||||
|
|
Loading…
Reference in a new issue