2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Update API scheme to layer 137.

This commit is contained in:
John Preston
2022-01-05 13:37:35 +03:00
parent 2317dd8820
commit 718ba2d0e3
3 changed files with 11 additions and 2 deletions

View File

@@ -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;