Add transfer ownership description box.

This commit is contained in:
John Preston 2019-06-17 13:40:40 +02:00
parent 7f96a185cf
commit 6a1abe8767
1 changed files with 10 additions and 1 deletions
Telegram/SourceFiles/boxes/peers

View File

@ -429,7 +429,16 @@ void EditAdminBox::transferOwnership() {
)).fail([=](const RPCError &error) {
_checkTransferRequestId = 0;
if (!handleTransferPasswordError(error)) {
transferOwnershipChecked();
getDelegate()->show(Box<ConfirmBox>(
tr::lng_rights_transfer_about(
tr::now,
lt_group,
Ui::Text::Bold(peer()->name),
lt_user,
Ui::Text::Bold(user()->shortName()),
Ui::Text::RichLangValue),
lang(lng_rights_transfer_sure),
crl::guard(this, [=] { transferOwnershipChecked(); })));
}
}).send();
}