Various improvements

This commit is contained in:
Ilya Laktyushin
2022-07-10 00:29:02 +02:00
parent 72ab414a74
commit c55a66eba0
10 changed files with 82 additions and 16 deletions

View File

@@ -423,7 +423,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
if !item.message.effectivelyIncoming(item.context.account.peerId) {
animationNode.success = { [weak self] onlyHaptic in
if let strongSelf = self, let item = strongSelf.item {
item.controllerInteraction.animateDiceSuccess(onlyHaptic)
item.controllerInteraction.animateDiceSuccess(true, !onlyHaptic)
}
}
}
@@ -433,7 +433,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
if !item.message.effectivelyIncoming(item.context.account.peerId) {
animationNode.success = { [weak self] in
if let strongSelf = self, let item = strongSelf.item {
item.controllerInteraction.animateDiceSuccess(false)
item.controllerInteraction.animateDiceSuccess(true, true)
}
}
}