Commit 3ced7bbb authored by vvaltman's avatar vvaltman

fixes for last json update

parent 8b8a69ec
...@@ -2192,7 +2192,7 @@ void print_read_list (int num, struct tgl_message *list[]) { ...@@ -2192,7 +2192,7 @@ void print_read_list (int num, struct tgl_message *list[]) {
} }
mprintf (ev, " marked read %d outbox and %d inbox messages\n", c1, c2); mprintf (ev, " marked read %d outbox and %d inbox messages\n", c1, c2);
mpop_color (ev); mpop_color (ev);
} }
} }
mprint_end (ev); mprint_end (ev);
} }
...@@ -2383,7 +2383,7 @@ void print_peer_updates (struct in_ev *ev, int flags) { ...@@ -2383,7 +2383,7 @@ void print_peer_updates (struct in_ev *ev, int flags) {
} }
} }
void json_peer_update (struct in_ev *ev, tgl_peer_t *P, unsigned flags) { void json_peer_update (struct in_ev *ev, tgl_peer_t *P, unsigned flags) {
#ifdef USE_JSON #ifdef USE_JSON
json_t *res = json_object (); json_t *res = json_object ();
assert (json_object_set (res, "event", json_string ("updates")) >= 0); assert (json_object_set (res, "event", json_string ("updates")) >= 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