Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-06-24 18:06:08 +03:00
parent 4755ee4261
commit a34b7402be
62 changed files with 753 additions and 1962 deletions

View File

@@ -31,7 +31,7 @@ class ChatAnimationGalleryItem: GalleryItem {
self.location = location
}
func node() -> GalleryItemNode {
func node(synchronous: Bool) -> GalleryItemNode {
let node = ChatAnimationGalleryItemNode(context: self.context, presentationData: self.presentationData)
for media in self.message.media {
@@ -46,7 +46,7 @@ class ChatAnimationGalleryItem: GalleryItem {
return node
}
func updateNode(node: GalleryItemNode) {
func updateNode(node: GalleryItemNode, synchronous: Bool) {
if let node = node as? ChatAnimationGalleryItemNode {
node.setMessage(self.message)
}