MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / SetCloudPassword

Function SetCloudPassword

Telegram/SourceFiles/boxes/passcode_box.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44};
45
46void SetCloudPassword(
47 not_null<Ui::GenericBox*> box,
48 not_null<Main::Session*> session) {
49 session->api().cloudPassword().state(
50 ) | rpl::on_next([=] {
51 using namespace Settings;
52 const auto weak = base::make_weak(box);
53 if (CheckEditCloudPassword(session)) {
54 box->getDelegate()->show(
55 EditCloudPasswordBox(session));
56 } else {
57 box->getDelegate()->show(CloudPasswordAppOutdatedBox());
58 }
59 if (weak) {
60 weak->closeBox();
61 }
62 }, box->lifetime());
63}
64
65void TransferPasswordError(
66 not_null<Ui::GenericBox*> box,

Callers 1

TransferPasswordErrorFunction · 0.85

Calls 6

CheckEditCloudPasswordFunction · 0.85
EditCloudPasswordBoxFunction · 0.85
apiMethod · 0.80
stateMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected