From 9f070a27a44322c237697f89ce4afc20394f5b0b Mon Sep 17 00:00:00 2001 From: Vysheng Date: Fri, 15 Nov 2013 16:59:06 +0400 Subject: [PATCH] Fixed assert on profile photo update --- interface.c | 1 + mtproto-client.c | 1 + 2 files changed, 2 insertions(+) diff --git a/interface.c b/interface.c index 3d87912..12b02ff 100644 --- a/interface.c +++ b/interface.c @@ -827,6 +827,7 @@ void interpreter (char *line UU) { } #undef IS_WORD #undef RET + update_prompt (); in_readline = 0; } diff --git a/mtproto-client.c b/mtproto-client.c index 4c1c1c0..dbd4152 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -876,6 +876,7 @@ void work_update (struct connection *c UU, long long msg_id UU) { if (y == CODE_user_profile_photo_empty) { } else { assert (y == CODE_user_profile_photo); + fetch_long (); // photo_id fetch_file_location (&t); fetch_file_location (&t); }