Change notificiation to include author

This commit is contained in:
Night Kaly 2024-09-18 08:38:04 +01:00
parent 7e982c0dae
commit e5894fdf69
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -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");