Explorar o código

Also disable EmojiReact notifications, if so configured.

grunfink hai 6 meses
pai
achega
a8cbbeeb3f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      html.c

+ 3 - 0
html.c

@@ -4030,6 +4030,9 @@ xs_str *html_notifications(snac *user, int skip, int show)
         if (xs_is_string(id2) && xs_set_add(&rep, id2) != 1)
             continue;
 
+        if (strcmp(type, "EmojiReact") == 0 && xs_is_true(xs_dict_get(srv_config, "disable_emojireact")))
+            continue;
+
         object_get(id, &obj);
 
         const char *msg_id = NULL;