2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Removed MTP* from PrePasswordErrorBox.

This commit is contained in:
23rd
2021-11-26 07:38:00 +03:00
committed by John Preston
parent 0c3b289af9
commit 287a35d208
5 changed files with 12 additions and 20 deletions

View File

@@ -451,15 +451,12 @@ void EditAdminBox::transferOwnership() {
MTP_inputCheckPasswordEmpty()
)).fail([=](const MTP::Error &error) {
_checkTransferRequestId = 0;
if (!handleTransferPasswordError(error)) {
const auto box = std::make_shared<QPointer<Ui::ConfirmBox>>();
const auto callback = crl::guard(this, [=] {
if (!handleTransferPasswordError(error.type())) {
const auto callback = crl::guard(this, [=](Fn<void()> &&close) {
transferOwnershipChecked();
if (*box) {
(*box)->closeBox();
}
close();
});
*box = getDelegate()->show(Box<Ui::ConfirmBox>(
getDelegate()->show(Box<Ui::ConfirmBox>(
tr::lng_rights_transfer_about(
tr::now,
lt_group,
@@ -473,7 +470,7 @@ void EditAdminBox::transferOwnership() {
}).send();
}
bool EditAdminBox::handleTransferPasswordError(const MTP::Error &error) {
bool EditAdminBox::handleTransferPasswordError(const QString &error) {
const auto session = &user()->session();
auto about = tr::lng_rights_transfer_check_about(
tr::now,