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

Update API scheme on layer 152.

This commit is contained in:
John Preston
2023-01-26 09:11:47 +04:00
parent 6bac662ee8
commit a58f9c6ebd
5 changed files with 27 additions and 12 deletions

View File

@@ -203,6 +203,8 @@ std::vector<UnavailableReason> ExtractUnavailableReasons(
return (data.vw().v * data.vh().v);
}, [](const MTPDvideoSizeEmojiMarkup &) {
return 0;
}, [](const MTPDvideoSizeStickerMarkup &) {
return 0;
});
};
const auto thumbs = data.vvideo_thumbs();
@@ -2818,13 +2820,17 @@ void Session::photoApplyFields(
return data.vsize().v ? (data.vw().v * data.vh().v) : 0;
}, [](const MTPDvideoSizeEmojiMarkup &) {
return 0;
}, [](const MTPDvideoSizeStickerMarkup &) {
return 0;
});
};
const auto type = [](const MTPVideoSize &size) {
return size.match([](const auto &data) {
return size.match([](const MTPDvideoSize &data) {
return data.vtype().v.isEmpty()
? char(0)
: data.vtype().v.front();
}, [](const auto &) {
return char(0);
});
};
const auto result = (size == PhotoSize::Small)
@@ -2866,7 +2872,8 @@ void Session::photoApplyFields(
(videoLarge
? videoLarge->match([](const MTPDvideoSize &data) {
return VideoStartTime(data);
}, [](const MTPDvideoSizeEmojiMarkup &) { return 0; })
}, [](const MTPDvideoSizeEmojiMarkup &) { return 0;
}, [](const MTPDvideoSizeStickerMarkup &) { return 0; })
: 0));
}
}