Fixed closing of transfer ownership box.

This commit is contained in:
23rd 2022-04-04 16:08:51 +03:00
parent e20aa0c524
commit 4754a513aa

View file

@ -624,8 +624,10 @@ void EditAdminBox::sendTransferRequestFrom(
tr::now,
lt_user,
user->shortName()));
if (weak) {
_show.hideLayer();
if (box) {
Ui::BoxShow(box).hideLayer();
} else if (weak) {
weak->_show.hideLayer();
}
}).fail(crl::guard(this, [=](const MTP::Error &error) {
if (weak) {