| 1536 | } |
| 1537 | |
| 1538 | void ApiWrap::finishExport(FnMut<void()> done) { |
| 1539 | const auto guard = gsl::finally([&] { _takeoutId = std::nullopt; }); |
| 1540 | |
| 1541 | mainRequest(MTPaccount_FinishTakeoutSession( |
| 1542 | MTP_flags(MTPaccount_FinishTakeoutSession::Flag::f_success) |
| 1543 | )).done(std::move(done)).send(); |
| 1544 | } |
| 1545 | |
| 1546 | void ApiWrap::skipFile(uint64 randomId) { |
| 1547 | if (!_fileProcess || _fileProcess->randomId != randomId) { |
no test coverage detected