From 35c611b8b901c59f2532b691ad6b25ded86938f9 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 14 Apr 2023 08:37:33 +0200 Subject: Fixed crash in notification list. --- data.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'data.c') diff --git a/data.c b/data.c index f3959bf..f54f082 100644 --- a/data.c +++ b/data.c @@ -1558,7 +1558,7 @@ xs_dict *notify_get(snac *snac, const char *id) xs_list *notify_list(snac *snac, int new_only) -/* returns a list of notifications, optionally only the new ones */ +/* returns a list of notification ids, optionally only the new ones */ { xs *t = NULL; @@ -1579,9 +1579,7 @@ xs_list *notify_list(snac *snac, int new_only) if (t != NULL && strcmp(id, t) < 0) continue; - xs *noti = notify_get(snac, id); - - out = xs_list_append(out, noti); + out = xs_list_append(out, id); } return out; -- cgit v1.2.3