Fixed incorrect handling of error from channel ownership request.

This commit is contained in:
23rd 2024-03-29 03:20:49 +03:00 committed by John Preston
parent 0b22e5928c
commit 24c1151101
1 changed files with 2 additions and 2 deletions

View File

@ -668,8 +668,8 @@ void EditAdminBox::sendTransferRequestFrom(
}();
const auto recoverable = [&] {
return (type == u"PASSWORD_MISSING"_q)
|| (type == u"PASSWORD_TOO_FRESH_XXX"_q)
|| (type == u"SESSION_TOO_FRESH_XXX"_q);
|| type.startsWith(u"PASSWORD_TOO_FRESH_"_q)
|| type.startsWith(u"SESSION_TOO_FRESH_"_q);
}();
const auto weak = Ui::MakeWeak(this);
getDelegate()->show(Ui::MakeInformBox(problem));