commit a99e94bccdbaf76bb1218c91ba7adf446f1456c8
parent 4fde627809962dc2a46a1f347837cfccf5e440ee
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Thu, 16 Jan 2025 19:41:37 +0800
cmd/notify: provide an ID for the parent notification
Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmd/notify/main.go b/cmd/notify/main.go
@@ -50,6 +50,7 @@ func main() {
}
if err := nativenotify.Push(nativenotify.Notification{
+ ID: "text-message",
Title: title,
Body: body,
Icon: icon,
@@ -66,7 +67,7 @@ func main() {
{
ID: "like",
LabelText: "Like",
- AppPayload: "frodo",
+ AppPayload: "@jack",
},
},
Callback: func(err error, id string, userData map[string]string) {