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:
@@ -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>(
|
||||
|
Reference in New Issue
Block a user