Skip to content

Commit

Permalink
Beta version 5.5.8: Fix build with Xcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Oct 3, 2024
1 parent 15fcb73 commit 335095a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ void SponsoredMessages::append(
_session->data().nextLocalMessageId());
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 i = _data.find(history);
if (i == end(_data)) {
Expand Down
1 change: 0 additions & 1 deletion Telegram/SourceFiles/data/data_media_preload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ void VideoPreload::load() {
callDone();
return;
}
const auto key = _video->bigFileBaseCacheKey();
const auto prefix = ChoosePreloadPrefix(_video);
Assert(prefix > 0 && prefix <= _video->size);
const auto part = Storage::kDownloadPartSize;
Expand Down

0 comments on commit 335095a

Please sign in to comment.