mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Beta version 5.5.8: Fix build with Xcode.
This commit is contained in:
parent
15fcb73e19
commit
335095a332
2 changed files with 1 additions and 2 deletions
|
@ -348,7 +348,7 @@ void SponsoredMessages::append(
|
||||||
_session->data().nextLocalMessageId());
|
_session->data().nextLocalMessageId());
|
||||||
const auto fileOrigin = FileOrigin(); // No way to refresh in ads.
|
const auto fileOrigin = FileOrigin(); // No way to refresh in ads.
|
||||||
|
|
||||||
static const auto kFlaggedPreload = ((MediaPreload*)nullptr) + 1;
|
static const auto kFlaggedPreload = ((MediaPreload*)quintptr(0x01));
|
||||||
const auto preloaded = [=] {
|
const auto preloaded = [=] {
|
||||||
const auto i = _data.find(history);
|
const auto i = _data.find(history);
|
||||||
if (i == end(_data)) {
|
if (i == end(_data)) {
|
||||||
|
|
|
@ -123,7 +123,6 @@ void VideoPreload::load() {
|
||||||
callDone();
|
callDone();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto key = _video->bigFileBaseCacheKey();
|
|
||||||
const auto prefix = ChoosePreloadPrefix(_video);
|
const auto prefix = ChoosePreloadPrefix(_video);
|
||||||
Assert(prefix > 0 && prefix <= _video->size);
|
Assert(prefix > 0 && prefix <= _video->size);
|
||||||
const auto part = Storage::kDownloadPartSize;
|
const auto part = Storage::kDownloadPartSize;
|
||||||
|
|
Loading…
Add table
Reference in a new issue