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

Parse and store video_timestamp.

This commit is contained in:
John Preston
2025-01-24 14:57:23 +04:00
parent 23ae638512
commit b618d1e56a
5 changed files with 71 additions and 72 deletions

View File

@@ -310,14 +310,13 @@ void AddViewMediaHandler(
owner->photo(item.id),
false)); // spoiler
} else {
fake.push_back(std::make_unique<Data::MediaFile>(
state->item,
owner->document(item.id),
nullptr, // videoCover
true, // skipPremiumEffect
false, // hasQualitiesList
false, // spoiler
0)); // ttlSeconds
const auto document = owner->document(item.id);
const auto item = state->item;
using MediaFile = Data::MediaFile;
using Args = MediaFile::Args;
fake.push_back(std::make_unique<MediaFile>(item, document, Args{
.skipPremiumEffect = true,
}));
}
}
state->item->overrideMedia(std::make_unique<Data::MediaInvoice>(