Limit emoji avatars looping

This commit is contained in:
Ilya Laktyushin
2023-01-29 18:44:00 +04:00
parent 1a37943e89
commit a6009be37c
2 changed files with 19 additions and 4 deletions

View File

@@ -3157,6 +3157,7 @@ public final class EmojiPagerContentComponent: Component {
}
public var onContentsUpdate: () -> Void = {}
public var onLoop: () -> Void = {}
public init(
item: Item,
@@ -3413,6 +3414,10 @@ public final class EmojiPagerContentComponent: Component {
self.onUpdateDisplayPlaceholder(false, 0.2)
self.animateAlpha(from: 0.0, to: 1.0, duration: 0.18)
}
if didLoop {
self.onLoop()
}
}
}