mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Update API scheme to layer 137.
This commit is contained in:
@@ -262,6 +262,13 @@ std::optional<Reaction> Reactions::parse(const MTPAvailableReaction &entry) {
|
||||
data.vactivate_animation()),
|
||||
.activateEffects = _owner->processDocument(
|
||||
data.veffect_animation()),
|
||||
.aroundAnimation = (data.varound_animation()
|
||||
? _owner->processDocument(
|
||||
*data.varound_animation()).get()
|
||||
: nullptr),
|
||||
.centerIcon = (data.vcenter_icon()
|
||||
? _owner->processDocument(*data.vcenter_icon()).get()
|
||||
: nullptr),
|
||||
.active = !data.is_inactive(),
|
||||
})
|
||||
: std::nullopt;
|
||||
|
@@ -22,6 +22,8 @@ struct Reaction {
|
||||
not_null<DocumentData*> selectAnimation;
|
||||
not_null<DocumentData*> activateAnimation;
|
||||
not_null<DocumentData*> activateEffects;
|
||||
DocumentData *aroundAnimation = nullptr;
|
||||
DocumentData *centerIcon = nullptr;
|
||||
bool active = false;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user