Change notificiation to include author
This commit is contained in:
parent
7e982c0dae
commit
e5894fdf69
1 changed files with 2 additions and 3 deletions
|
@ -1,10 +1,9 @@
|
||||||
#include "notification.h"
|
#include "notification.h"
|
||||||
#include "util.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((char *) author,
|
||||||
NotifyNotification *notification = notify_notification_new("Client",
|
|
||||||
(char *) content, "dialog-information");
|
(char *) content, "dialog-information");
|
||||||
if (notification == NULL) {
|
if (notification == NULL) {
|
||||||
error(0, "Cannot create notification");
|
error(0, "Cannot create notification");
|
||||||
|
|
Loading…
Reference in a new issue