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

Method callDone

Telegram/SourceFiles/intro/intro_code.cpp:321–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321void CodeWidget::callDone(const MTPauth_SentCode &result) {
322 result.match([&](const MTPDauth_sentCode &data) {
323 fillSentCodeData(data);
324 _code->setDigitsCountMax(getData()->codeLength);
325 if (_callStatus == CallStatus::Calling) {
326 _callStatus = CallStatus::Called;
327 getData()->callStatus = _callStatus;
328 getData()->callTimeout = _callTimeout;
329 updateCallText();
330 }
331 }, [&](const MTPDauth_sentCodeSuccess &data) {
332 finish(data.vauthorization());
333 }, [](const MTPDauth_sentCodePaymentRequired &) {
334 LOG(("API Error: Unexpected auth.sentCodePaymentRequired "
335 "(CodeWidget::callDone)."));
336 });
337}
338
339void CodeWidget::gotPassword(const MTPaccount_Password &result) {
340 Expects(result.type() == mtpc_account_password);

Callers 2

resolveMethod · 0.45
requestPhoneCallMethod · 0.45

Calls 2

setDigitsCountMaxMethod · 0.80
finishFunction · 0.50

Tested by

no test coverage detected