From 5174d1399a6c42b9fd67270f1a989d19b518caf4 Mon Sep 17 00:00:00 2001 From: luckydonald Date: Wed, 13 May 2015 18:50:49 +0200 Subject: [PATCH] fixed: flags were named "id" too. --- json-tg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-tg.c b/json-tg.c index 87e4c76..2e714a7 100644 --- a/json-tg.c +++ b/json-tg.c @@ -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);