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

Method requestSplitRanges

Telegram/SourceFiles/export/export_api_wrap.cpp:585–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void ApiWrap::requestSplitRanges() {
586 Expects(_startProcess != nullptr);
587
588 mainRequest(MTPmessages_GetSplitRanges(
589 )).done([=](const MTPVector<MTPMessageRange> &result) {
590 _splits = result.v;
591 if (_splits.empty()) {
592 _splits.push_back(MTP_messageRange(
593 MTP_int(1),
594 MTP_int(std::numeric_limits<int>::max())));
595 }
596 _startProcess->splitIndex = useOnlyLastSplit()
597 ? (_splits.size() - 1)
598 : 0;
599
600 sendNextStartRequest();
601 }).send();
602}
603
604void ApiWrap::requestDialogsCount() {
605 Expects(_startProcess != nullptr);

Callers

nothing calls this directly

Calls 5

MTP_intFunction · 0.50
sendMethod · 0.45
doneMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected