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

Method messagesCountLoaded

Telegram/SourceFiles/export/export_api_wrap.cpp:1526–1536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1524}
1525
1526void ApiWrap::messagesCountLoaded(int localSplitIndex, int count) {
1527 Expects(_chatProcess != nullptr);
1528 Expects(localSplitIndex < _chatProcess->info.splits.size());
1529
1530 _chatProcess->info.messagesCountPerSplit[localSplitIndex] = count;
1531 if (localSplitIndex + 1 < _chatProcess->info.splits.size()) {
1532 requestMessagesCount(localSplitIndex + 1);
1533 } else if (_chatProcess->start(_chatProcess->info)) {
1534 requestMessagesSlice();
1535 }
1536}
1537
1538void ApiWrap::finishExport(FnMut<void()> done) {
1539 const auto guard = gsl::finally([&] { _takeoutId = std::nullopt; });

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected