From e5894fdf69ed22c20afaca66837a39fee98ffc96 Mon Sep 17 00:00:00 2001 From: night0721 Date: Wed, 18 Sep 2024 08:38:04 +0100 Subject: [PATCH] Change notificiation to include author --- lib/notification.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/notification.c b/lib/notification.c index 840757a..fb831f2 100644 --- a/lib/notification.c +++ b/lib/notification.c @@ -1,10 +1,9 @@ #include "notification.h" #include "util.h" -void send_notification(uint8_t *content) +void send_notification(uint8_t *author, uint8_t *content) { - printf("Content: %s\n", content); - NotifyNotification *notification = notify_notification_new("Client", + NotifyNotification *notification = notify_notification_new((char *) author, (char *) content, "dialog-information"); if (notification == NULL) { error(0, "Cannot create notification");