Fixed encrypted chat updates.

This commit is contained in:
vvaltman 2014-08-27 20:59:42 +04:00
parent d954f87514
commit 13313af979
3 changed files with 4 additions and 2 deletions

View file

@ -738,7 +738,7 @@ void print_read_list (int num, struct tgl_message *list[]) {
break;
case TGL_PEER_ENCR_CHAT:
printf ("Secret chat ");
print_chat_name (to_id, tgl_peer_get (to_id));
print_encr_chat_name (to_id, tgl_peer_get (to_id));
break;
default:
assert (0);

View file

@ -2760,8 +2760,8 @@ void tgl_do_accept_encr_chat_request (struct tgl_secret_chat *E, void (*callback
if (E->state != sc_request) {
if (callback) {
callback (callback_extra, 0, E);
return;
}
return;
}
assert (E->state == sc_request);

View file

@ -296,6 +296,7 @@ void tglu_work_update (struct connection *c, long long msg_id) {
{
struct tgl_message *M = tglf_fetch_alloc_geo_message ();
assert (M);
bl_do_msg_update (M->id);
}
break;
case CODE_update_new_encrypted_message:
@ -303,6 +304,7 @@ void tglu_work_update (struct connection *c, long long msg_id) {
struct tgl_message *M = tglf_fetch_alloc_encrypted_message ();
assert (M);
tglu_fetch_qts ();
bl_do_msg_update (M->id);
}
break;
case CODE_update_encryption: