2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Implement multiboost reassign box.

This commit is contained in:
John Preston
2023-11-08 13:31:01 +04:00
parent a41bbd27c8
commit c5d1739e95
18 changed files with 844 additions and 213 deletions

View File

@@ -567,12 +567,10 @@ void PasscodeBox::validateEmail(
} else if (error.type() == u"EMAIL_HASH_EXPIRED"_q) {
const auto weak = Ui::MakeWeak(this);
_clearUnconfirmedPassword.fire({});
if (weak) {
auto box = Ui::MakeInformBox({
Lang::Hard::EmailConfirmationExpired()
});
weak->getDelegate()->show(
std::move(box),
if (const auto strong = weak.data()) {
strong->getDelegate()->show(
Ui::MakeInformBox(
Lang::Hard::EmailConfirmationExpired()),
Ui::LayerOption::CloseOther);
}
} else {