diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -2084,7 +2084,7 @@ xs_dict *notify_get(snac *snac, const char *id) | |||
| 2084 | } | 2084 | } |
| 2085 | 2085 | ||
| 2086 | 2086 | ||
| 2087 | xs_list *notify_list(snac *snac) | 2087 | xs_list *notify_list(snac *snac, int skip, int show) |
| 2088 | /* returns a list of notification ids */ | 2088 | /* returns a list of notification ids */ |
| 2089 | { | 2089 | { |
| 2090 | xs *idx = xs_fmt("%s/notify.idx", snac->basedir); | 2090 | xs *idx = xs_fmt("%s/notify.idx", snac->basedir); |
| @@ -2115,7 +2115,7 @@ xs_list *notify_list(snac *snac) | |||
| 2115 | pthread_mutex_unlock(&data_mutex); | 2115 | pthread_mutex_unlock(&data_mutex); |
| 2116 | } | 2116 | } |
| 2117 | 2117 | ||
| 2118 | return index_list_desc(idx, 0, 64); | 2118 | return index_list_desc(idx, skip, show); |
| 2119 | } | 2119 | } |
| 2120 | 2120 | ||
| 2121 | 2121 | ||
| @@ -2123,7 +2123,7 @@ int notify_new_num(snac *snac) | |||
| 2123 | /* counts the number of new notifications */ | 2123 | /* counts the number of new notifications */ |
| 2124 | { | 2124 | { |
| 2125 | xs *t = notify_check_time(snac, 0); | 2125 | xs *t = notify_check_time(snac, 0); |
| 2126 | xs *lst = notify_list(snac); | 2126 | xs *lst = notify_list(snac, 0, XS_ALL); |
| 2127 | int cnt = 0; | 2127 | int cnt = 0; |
| 2128 | 2128 | ||
| 2129 | xs_list *p = lst; | 2129 | xs_list *p = lst; |