mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Remove twidget header.
This commit is contained in:
@@ -57,7 +57,7 @@ void SetCloudPassword(not_null<GenericBox*> box, not_null<UserData*> user) {
|
||||
user->session().api().passwordState(
|
||||
) | rpl::start_with_next([=] {
|
||||
using namespace Settings;
|
||||
const auto weak = make_weak(box);
|
||||
const auto weak = Ui::MakeWeak(box);
|
||||
if (CheckEditCloudPassword(&user->session())) {
|
||||
box->getDelegate()->show(
|
||||
EditCloudPasswordBox(&user->session()));
|
||||
@@ -580,7 +580,7 @@ void EditAdminBox::sendTransferRequestFrom(
|
||||
if (_transferRequestId) {
|
||||
return;
|
||||
}
|
||||
const auto weak = make_weak(this);
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
const auto user = this->user();
|
||||
const auto api = &channel->session().api();
|
||||
_transferRequestId = api->request(MTPchannels_EditCreator(
|
||||
@@ -626,7 +626,7 @@ void EditAdminBox::sendTransferRequestFrom(
|
||||
|| (type == qstr("PASSWORD_TOO_FRESH_XXX"))
|
||||
|| (type == qstr("SESSION_TOO_FRESH_XXX"));
|
||||
}();
|
||||
const auto weak = make_weak(this);
|
||||
const auto weak = Ui::MakeWeak(this);
|
||||
getDelegate()->show(Box<InformBox>(problem));
|
||||
if (box) {
|
||||
box->closeBox();
|
||||
|
Reference in New Issue
Block a user