summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
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)
1558 1558
1559 1559
1560xs_list *notify_list(snac *snac, int new_only) 1560xs_list *notify_list(snac *snac, int new_only)
1561/* returns a list of notifications, optionally only the new ones */ 1561/* returns a list of notification ids, optionally only the new ones */
1562{ 1562{
1563 xs *t = NULL; 1563 xs *t = NULL;
1564 1564
@@ -1579,9 +1579,7 @@ xs_list *notify_list(snac *snac, int new_only)
1579 if (t != NULL && strcmp(id, t) < 0) 1579 if (t != NULL && strcmp(id, t) < 0)
1580 continue; 1580 continue;
1581 1581
1582 xs *noti = notify_get(snac, id); 1582 out = xs_list_append(out, id);
1583
1584 out = xs_list_append(out, noti);
1585 } 1583 }
1586 1584
1587 return out; 1585 return out;