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

Request song covers through MTProto.

This commit is contained in:
John Preston
2022-08-01 15:14:37 +03:00
parent be133fce78
commit 087074fea4
16 changed files with 145 additions and 185 deletions

View File

@@ -285,6 +285,7 @@ private:
InlineThumbnailIsPath = 0x080,
ForceToCache = 0x100,
PremiumSticker = 0x200,
PossibleCoverThumbnail = 0x400,
};
using Flags = base::flags<Flag>;
friend constexpr bool is_flag_type(Flag) { return true; };
@@ -326,6 +327,8 @@ private:
bool saveFromDataChecked();
void refreshPossibleCoverThumbnail();
const not_null<Data::Session*> _owner;
// Two types of location: from MTProto by dc+access or from web by url