Commit 31bd1749 authored by Vysheng's avatar Vysheng

Workaround for iphone bug

parent dbb6d196
......@@ -1247,8 +1247,12 @@ void tglf_fetch_encrypted_message (struct tgl_state *TLS, struct tgl_message *M)
//vlogprintf (E_WARNING, "in = %d, out = %d\n", in_seq_no, out_seq_no);
//P->encr_chat.in_seq_no = in_seq_no / 2;
x = fetch_int ();
vlogprintf (E_DEBUG - 2, "layer = %d, in = %d, out = %d\n", layer, in_seq_no, out_seq_no);
}
if (!(x == CODE_decrypted_message || x == CODE_decrypted_message_service || x == CODE_decrypted_message_l16 || x == CODE_decrypted_message_service_l16)) {
vlogprintf (E_ERROR, "x = 0x%08x\n", x);
assert (x == CODE_decrypted_message || x == CODE_decrypted_message_service || x == CODE_decrypted_message_l16 || x == CODE_decrypted_message_service_l16);
}
assert (x == CODE_decrypted_message || x == CODE_decrypted_message_service || x == CODE_decrypted_message_l16 || x == CODE_decrypted_message_service_l16);
//assert (id == fetch_long ());
long long new_id = fetch_long ();
if (P && P->encr_chat.layer >= 17) {
......
......@@ -40,7 +40,7 @@
#define TGL_BUILD "2590"
#define TGL_VERSION "1.1.0"
#define TGL_ENCRYPTED_LAYER 18
#define TGL_ENCRYPTED_LAYER 17
struct connection;
struct mtproto_methods;
......
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