From 47b61b0cdaa95adf2543523da00f134276eff8c3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Feb 2023 18:21:04 +0300 Subject: more thorough fix for #3317 --- protocols/Telegram/src/auth.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols') diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index cdb1df9aeb..d1cfb85211 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -44,7 +44,9 @@ INT_PTR CALLBACK CTelegramProto::EnterEmailCode(void *param) es.szModuleName = ppro->m_szModuleName; es.caption = TranslateT("Enter verification code received by email"); if (EnterString(&es)) { - ppro->SendQuery(new TD::checkEmailAddressVerificationCode(T2Utf(es.ptszResult).get()), &CTelegramProto::OnUpdateAuth); + ppro->SendQuery(new TD::checkAuthenticationEmailCode( + TD::object_ptr(new TD::emailAddressAuthenticationCode(T2Utf(es.ptszResult).get()))), + &CTelegramProto::OnUpdateAuth); mir_free(es.ptszResult); } else ppro->LogOut(); -- cgit v1.2.3