2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

autoload settings box added, working for voice messages and gifs (photos TODO)

This commit is contained in:
John Preston
2015-12-24 00:19:57 +03:00
parent b94533fcb2
commit 7c7d517b34
16 changed files with 300 additions and 62 deletions

View File

@@ -903,6 +903,7 @@ struct AudioData {
void forget() {
}
bool prepareAutoLoader(const HistoryItem *item, bool force = false);
void save(const QString &toFile);
void cancel(bool beforeDownload = false) {
@@ -1147,7 +1148,7 @@ struct DocumentData {
bool loadingStarted() {
return loader && loader->started();
}
void prepareAutoLoader();
bool prepareAutoLoader(const HistoryItem *item, bool force = false);
StickerData *sticker() {
return (type == StickerDocument) ? static_cast<StickerData*>(_additional) : 0;
}