From 84152d67f5c5158b1e75ce67c13e4af696e3f305 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 2 Jun 2023 10:58:49 +0200 Subject: Fixed bug in notify() (the poll id was not set). --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html.c') diff --git a/html.c b/html.c index 3e50648..78e164d 100644 --- a/html.c +++ b/html.c @@ -1402,7 +1402,7 @@ xs_str *html_notifications(snac *snac) const char *utype = xs_dict_get(noti, "utype"); const char *id = xs_dict_get(noti, "objid"); - if (!valid_status(object_get(id, &obj))) + if (xs_is_null(id) || !valid_status(object_get(id, &obj))) continue; if (is_hidden(snac, id)) -- cgit v1.2.3