Fix build with Xcode.

This commit is contained in:
23rd 2022-02-28 08:40:01 +03:00 committed by John Preston
parent 592f47a751
commit ed90891607
1 changed files with 4 additions and 4 deletions

View File

@ -297,13 +297,13 @@ void DownloadManager::deleteFiles(const std::vector<GlobalMsgId> &ids) {
}
}
}
for (const auto session : sessions) {
for (const auto &session : sessions) {
writePostponed(session);
}
crl::async([files = std::move(files)] {
for (const auto &[path, descriptor] : files) {
QFile(path).remove();
crl::on_main([descriptor] {
for (const auto &file : files) {
QFile(file.first).remove();
crl::on_main([descriptor = file.second] {
if (const auto session = SessionByUniqueId(
descriptor.sessionUniqueId)) {
if (const auto id = descriptor.documentId) {