mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Beta version 5.5.8: Fix build with Xcode.
This commit is contained in:
parent
15fcb73e19
commit
335095a332
@ -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…
x
Reference in New Issue
Block a user