2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Keep alternative video qualities list.

This commit is contained in:
John Preston
2024-10-25 10:01:26 +04:00
parent 19afb49fce
commit 7ba78540ac
9 changed files with 129 additions and 16 deletions

View File

@@ -62,7 +62,9 @@ using UpdateFlag = StoryUpdate::Flag;
}, [&](const MTPDmessageMediaDocument &data)
-> std::optional<StoryMedia> {
if (const auto document = data.vdocument()) {
const auto result = owner->processDocument(*document);
const auto result = owner->processDocument(
*document,
data.valt_documents());
if (!result->isNull()
&& (result->isGifv() || result->isVideoFile())) {
result->setStoryMedia(true);