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

Preload stories in the sources lists.

This commit is contained in:
John Preston
2023-06-26 20:22:56 +04:00
parent 21543338d7
commit d567282430
13 changed files with 264 additions and 443 deletions

View File

@@ -274,6 +274,8 @@ public:
void setInappPlaybackFailed();
[[nodiscard]] bool inappPlaybackFailed() const;
[[nodiscard]] int videoPreloadPrefix() const;
[[nodiscard]] StorageFileLocation videoPreloadLocation() const;
DocumentId id = 0;
int64 size = 0;
@@ -344,6 +346,7 @@ private:
const not_null<Data::Session*> _owner;
int _videoPreloadPrefix = 0;
// Two types of location: from MTProto by dc+access or from web by url
int32 _dc = 0;
uint64 _access = 0;