Various fixes

This commit is contained in:
Ilya Laktyushin
2020-10-28 04:46:09 +04:00
parent f2477074ae
commit 32effd4291
25 changed files with 122 additions and 183 deletions

View File

@@ -1274,7 +1274,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
return .optionalAction({
if shouldPlay {
let _ = (appConfiguration
|> deliverOnMainQueue).start(next: { [weak self] appConfiguration in
|> deliverOnMainQueue).start(next: { [weak self, weak animationNode] appConfiguration in
guard let strongSelf = self else {
return
}
@@ -1315,9 +1315,10 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
}
}
}))
break
return
}
}
animationNode?.play()
})
}
})