From 24c1151101c1a074c4f35d0d1fb5271f806a24cf Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Fri, 29 Mar 2024 03:20:49 +0300 Subject: [PATCH] Fixed incorrect handling of error from channel ownership request. --- Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp index 6268db65b..e5f4b4d1b 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_participant_box.cpp @@ -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));