Fixed error handler of wrong cloud password for withdrawal button.

This commit is contained in:
23rd 2024-10-24 19:46:35 +03:00
parent 9c185a30e0
commit d6863074b2

View file

@ -89,7 +89,10 @@ void HandleWithdrawalButton(
} }
}; };
const auto fail = [=](const MTP::Error &error) { 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) { if (channel) {
session->api().request( session->api().request(