Fix broken secret chats after reload
This commit is contained in:
parent
b415bbd3b4
commit
aec0cda21b
1 changed files with 6 additions and 3 deletions
|
@ -344,9 +344,12 @@ void read_secret_chat (struct tgl_state *TLS, int fd, int v) {
|
|||
assert (read (fd, &out_seq_no, 4) == 4);
|
||||
}
|
||||
|
||||
bl_do_encr_chat_new(TLS, id, &access_hash, &date, &admin_id, &user_id, &admin_id,
|
||||
key, NULL, &state, &ttl, &layer, &in_seq_no, &last_in_seq_no,
|
||||
&out_seq_no, &key_fingerprint, TGLECF_CREATE | TGLECF_CREATED);
|
||||
bl_do_encr_chat_new (TLS, id,
|
||||
&access_hash, &date, &admin_id, &user_id,
|
||||
key, NULL, sha, &state, &ttl, &layer,
|
||||
&in_seq_no, &last_in_seq_no, &out_seq_no,
|
||||
&key_fingerprint, TGLECF_CREATE | TGLECF_CREATED
|
||||
);
|
||||
}
|
||||
|
||||
void read_secret_chat_file (struct tgl_state *TLS) {
|
||||
|
|
Loading…
Add table
Reference in a new issue