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