Voice Chat UI fixes

This commit is contained in:
Ilya Laktyushin 2020-11-28 13:59:02 +04:00
parent 5fb5fa16c1
commit 166aa6cf30

View File

@ -440,7 +440,6 @@ private class VoiceChatActionButtonBackgroundNode: ASDisplayNode {
self.transition = VoiceChatActionButtonBackgroundNodeTransition(startTime: CACurrentMediaTime(), duration: 0.3, previousState: self.state)
}
self.state = state
self.animator?.frameInterval = state.frameInterval
} else if let blobState = self.state as? VoiceChatActionButtonBackgroundNodeBlobState, let nextState = state as? VoiceChatActionButtonBackgroundNodeBlobState {
blobState.update(with: nextState)
}
@ -480,10 +479,10 @@ private class VoiceChatActionButtonBackgroundNode: ASDisplayNode {
animator = ConstantDisplayLinkAnimator(update: { [weak self] in
self?.updateAnimations()
})
animator.frameInterval = 2
self.animator = animator
}
animator.isPaused = false
animator.frameInterval = state.frameInterval
} else {
self.animator?.isPaused = true
}