2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

sticker packs done

This commit is contained in:
John Preston
2015-05-19 18:46:45 +03:00
parent 136fd5c8e1
commit 92858dc7d3
39 changed files with 2312 additions and 702 deletions

View File

@@ -253,7 +253,7 @@ struct VideoData {
void finish() {
if (loader->done()) {
location = FileLocation(loader->fileType(), loader->fileName());
location = FileLocation(mtpToStorageType(loader->fileType()), loader->fileName());
}
loader->deleteLater();
loader->rpcInvalidate();
@@ -339,7 +339,7 @@ struct AudioData {
void finish() {
if (loader->done()) {
location = FileLocation(loader->fileType(), loader->fileName());
location = FileLocation(mtpToStorageType(loader->fileType()), loader->fileName());
data = loader->bytes();
}
loader->deleteLater();
@@ -409,6 +409,7 @@ struct StickerData {
QString alt;
MTPInputStickerSet set;
StorageImageLocation loc; // doc thumb location
};
enum DocumentType {
@@ -446,7 +447,7 @@ struct DocumentData {
void finish() {
if (loader->done()) {
location = FileLocation(loader->fileType(), loader->fileName());
location = FileLocation(mtpToStorageType(loader->fileType()), loader->fileName());
data = loader->bytes();
}
loader->deleteLater();