From d6863074b2332c2c0f50d073d8800b15805fdd19 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 24 Oct 2024 19:46:35 +0300 Subject: [PATCH] Fixed error handler of wrong cloud password for withdrawal button. --- Telegram/SourceFiles/api/api_earn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_earn.cpp b/Telegram/SourceFiles/api/api_earn.cpp index f05e5f6188..432e1d2781 100644 --- a/Telegram/SourceFiles/api/api_earn.cpp +++ b/Telegram/SourceFiles/api/api_earn.cpp @@ -89,7 +89,10 @@ void HandleWithdrawalButton( } }; const auto fail = [=](const MTP::Error &error) { - show->showToast(error.type()); + const auto message = error.type(); + if (box && !box->handleCustomCheckError(message)) { + show->showToast(message); + } }; if (channel) { session->api().request(