Fixed encrypted chat updates.
This commit is contained in:
parent
d954f87514
commit
13313af979
3 changed files with 4 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue