Voice Chat Fixes

This commit is contained in:
Ilya Laktyushin 2021-03-15 20:36:15 +04:00
parent 615aa16420
commit 94118d9798

View File

@ -716,7 +716,7 @@ private final class VoiceChatActionButtonBackgroundNode: ASDisplayNode {
guard let strongSelf = self else { guard let strongSelf = self else {
return return
} }
if strongSelf.state != .connecting && strongSelf.state != .disabled { if strongSelf.state != .connecting {
return return
} }
strongSelf.maskBlobView.isHidden = true strongSelf.maskBlobView.isHidden = true
@ -745,7 +745,7 @@ private final class VoiceChatActionButtonBackgroundNode: ASDisplayNode {
guard let strongSelf = self else { guard let strongSelf = self else {
return return
} }
if strongSelf.state != .connecting && strongSelf.state != .disabled { if strongSelf.state != .connecting {
return return
} }
strongSelf.maskBlobView.isHidden = true strongSelf.maskBlobView.isHidden = true
@ -766,7 +766,7 @@ private final class VoiceChatActionButtonBackgroundNode: ASDisplayNode {
self.animatingDisappearance = false self.animatingDisappearance = false
self.growingForegroundCircleLayer.isHidden = true self.growingForegroundCircleLayer.isHidden = true
self.disableGlowAnimations = false self.disableGlowAnimations = false
if self.state != .connecting && self.state != .disabled { if self.state != .connecting {
return return
} }
CATransaction.begin() CATransaction.begin()