2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Remove some more Auth() calls.

This commit is contained in:
John Preston
2019-07-24 16:00:30 +02:00
parent ff44094ded
commit 137fa0378c
59 changed files with 840 additions and 460 deletions

View File

@@ -57,7 +57,7 @@ void SetCloudPassword(not_null<GenericBox*> box, not_null<UserData*> user) {
) | rpl::start_with_next([=] {
using namespace Settings;
const auto weak = make_weak(box);
if (CheckEditCloudPassword()) {
if (CheckEditCloudPassword(&user->session())) {
box->getDelegate()->show(
EditCloudPasswordBox(&user->session()));
} else {
@@ -566,7 +566,9 @@ void EditAdminBox::requestTransferPassword(not_null<ChannelData*> channel) {
const Core::CloudPasswordResult &result) {
sendTransferRequestFrom(*box, channel, result);
});
*box = getDelegate()->show(Box<PasscodeBox>(fields));
*box = getDelegate()->show(Box<PasscodeBox>(
&channel->session(),
fields));
}, lifetime());
}