mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 11:52:58 +00:00
Differ file download failure reasons
..and uncomment the code for handling incorrect permissions
This commit is contained in:
@@ -279,11 +279,11 @@ void LoadCloudFile(
|
||||
if (const auto onstack = progress) {
|
||||
onstack();
|
||||
}
|
||||
}, [=, &file](bool started) {
|
||||
}, [=, &file](FileLoader::Error error) {
|
||||
finish(file);
|
||||
file.flags |= CloudFile::Flag::Failed;
|
||||
if (const auto onstack = fail) {
|
||||
onstack(started);
|
||||
onstack(error.started);
|
||||
}
|
||||
}, [=, &file] {
|
||||
finish(file);
|
||||
|
||||
Reference in New Issue
Block a user