2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Removed obsolete storage_file_type fields.

This commit is contained in:
John Preston
2017-03-04 14:28:21 +03:00
parent 83720d8789
commit 31009b19c6
9 changed files with 75 additions and 145 deletions

View File

@@ -43,7 +43,7 @@ void FileUploader::uploadMedia(const FullMsgId &msgId, const SendMediaReady &med
document->setData(media.data);
}
if (!media.file.isEmpty()) {
document->setLocation(FileLocation(StorageFilePartial, media.file));
document->setLocation(FileLocation(media.file));
}
}
queue.insert(msgId, File(media));
@@ -66,7 +66,7 @@ void FileUploader::upload(const FullMsgId &msgId, const FileLoadResultPtr &file)
document->setData(file->content);
}
if (!file->filepath.isEmpty()) {
document->setLocation(FileLocation(StorageFilePartial, file->filepath));
document->setLocation(FileLocation(file->filepath));
}
}
queue.insert(msgId, File(file));