Also accept 'Delete' on input.

This commit is contained in:
default 2022-10-01 19:48:13 +02:00
parent 82e9a03925
commit 366c23ab85

View File

@ -746,11 +746,14 @@ int process_message(snac *snac, char *msg, char *req)
else else
snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype)); snac_log(snac, xs_fmt("ignored 'Update' for object type '%s'", utype));
} }
/*
else else
if (strcmp(type, "Delete") == 0) { if (strcmp(type, "Delete") == 0) {
if (xs_type(object) == XSTYPE_DICT)
object = xs_dict_get(object, "id");
timeline_del(snac, object);
snac_log(snac, xs_fmt("received delete request for %s", object));
} }
*/
else else
snac_debug(snac, 1, xs_fmt("process_message type '%s' ignored", type)); snac_debug(snac, 1, xs_fmt("process_message type '%s' ignored", type));