fix issue with MTProxy and media dc_id

This commit is contained in:
Wizou 2022-06-19 18:08:19 +02:00
parent b1c8d225f2
commit f620514759
2 changed files with 4 additions and 2 deletions

View file

@ -56,6 +56,7 @@ namespace WTelegram
new_nonce = new Int256(RNG),
dc = session.DataCenter?.id ?? 0
};
if (session.DataCenter?.flags.HasFlag(DcOption.Flags.media_only) == true) pqInnerData.dc = -pqInnerData.dc;
byte[] encrypted_data = null;
{
//4.1) RSA_PAD(data, server_public_key)