summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-04-14 08:37:33 +0200
committerdefault <nobody@localhost>2023-04-14 08:37:33 +0200
commit35c611b8b901c59f2532b691ad6b25ded86938f9 (patch)
treeb06c27d1ea17559782059ef884a4acc542b7f9b3 /data.c
parent815c39d0c6622169dfab9d0446ace3483ffb7554 (diff)
Fixed crash in notification list.
Diffstat (limited to 'data.c')
-rw-r--r--data.c6
1 files changed, 2 insertions, 4 deletions
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;