mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Voice Chat UI fixes
This commit is contained in:
parent
5fb5fa16c1
commit
166aa6cf30
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user