Commit 5174d139 authored by luckydonald's avatar luckydonald

fixed: flags were named "id" too.

parent 4afd5d5c
......@@ -331,7 +331,7 @@ json_t *json_pack_message (struct tgl_message *M) {
assert (json_object_set (res, "id", json_integer (M->id)) >= 0);
if (!(M->flags & TGLMF_CREATED)) { return res; }
assert (json_object_set (res, "id", json_integer (M->flags)) >= 0);
assert (json_object_set (res, "flags", json_integer (M->flags)) >= 0);
if (tgl_get_peer_type (M->fwd_from_id)) {
assert (json_object_set (res, "fwd_from", json_pack_peer (M->fwd_from_id, tgl_peer_get (TLS, M->fwd_from_id))) >= 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment