Fix AnimationSize parsing.
GitOrigin-RevId: 20806eb8cf947ffaaf9b0100ec7d9a8e03353535
This commit is contained in:
parent
9f18424e22
commit
41cac3edba
@ -95,7 +95,11 @@ void store(const AnimationSize &animation_size, StorerT &storer) {
|
||||
template <class ParserT>
|
||||
void parse(AnimationSize &animation_size, ParserT &parser) {
|
||||
parse(static_cast<PhotoSize &>(animation_size), parser);
|
||||
if (parser.version() >= static_cast<int32>(Version::AddDialogPhotoHasAnimation)) {
|
||||
parse(animation_size.main_frame_timestamp, parser);
|
||||
} else {
|
||||
animation_size.main_frame_timestamp = 0;
|
||||
}
|
||||
}
|
||||
|
||||
template <class StorerT>
|
||||
|
@ -11,32 +11,32 @@ namespace td {
|
||||
constexpr int32 MTPROTO_LAYER = 116;
|
||||
|
||||
enum class Version : int32 {
|
||||
Initial,
|
||||
Initial, // 0
|
||||
StoreFileId,
|
||||
AddKeyHashToSecretChat,
|
||||
AddDurationToAnimation,
|
||||
FixStoreGameWithoutAnimation,
|
||||
AddAccessHashToSecretChat,
|
||||
AddAccessHashToSecretChat, // 5
|
||||
StoreFileOwnerId,
|
||||
StoreFileEncryptionKey,
|
||||
NetStatsCountDuration,
|
||||
FixWebPageInstantViewDatabase,
|
||||
FixMinUsers,
|
||||
FixMinUsers, // 10
|
||||
FixPageBlockAudioEmptyFile,
|
||||
AddMessageInvoiceProviderData,
|
||||
AddCaptionEntities,
|
||||
AddVenueType,
|
||||
AddTermsOfService,
|
||||
AddTermsOfService, // 15
|
||||
AddContactVcard,
|
||||
AddMessageUnsupportedVersion,
|
||||
SupportInstantView2_0,
|
||||
AddNotificationGroupInfoMaxRemovedMessageId,
|
||||
SupportMinithumbnails,
|
||||
SupportMinithumbnails, // 20
|
||||
AddVideoCallsSupport,
|
||||
AddPhotoSizeSource,
|
||||
AddFolders,
|
||||
SupportPolls2_0,
|
||||
AddDiceEmoji,
|
||||
AddDiceEmoji, // 25
|
||||
AddAnimationStickers,
|
||||
AddDialogPhotoHasAnimation,
|
||||
Next
|
||||
|
Loading…
Reference in New Issue
Block a user