Commit bc5a7e67 authored by vvaltman's avatar vvaltman

Fixed encrypted chat updates.

parent 9b956320
......@@ -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);
......
......@@ -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);
......
......@@ -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:
......
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