From 2e71f2f0df493936c728f08cd8eb6c6815109e45 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 11 Jun 2021 14:14:31 +0300 Subject: [PATCH] Video Chat Improvements --- .../TelegramCallsUI/Sources/VoiceChatMainStageNode.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift b/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift index d77126829d..1a5a557931 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatMainStageNode.swift @@ -69,18 +69,15 @@ private class VoiceChatPinButtonNode: HighlightTrackingButtonNode { self.pinButtonIconNode.update(state: .init(pinned: pinned, color: .white), animated: true) self.isPinned = pinned + self.pinButtonTitleNode.alpha = self.isPinned ? 1.0 : 0.0 if animated { if wasPinned { - self.pinButtonTitleNode.alpha = 0.0 self.pinButtonTitleNode.layer.animateAlpha(from: 1.0, to: 0.0, duration: 0.2) self.pinButtonTitleNode.layer.animatePosition(from: CGPoint(), to: CGPoint(x: self.pinButtonTitleNode.frame.width, y: 0.0), duration: 0.2, additive: true) } else { - self.pinButtonTitleNode.alpha = 1.0 self.pinButtonTitleNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2) self.pinButtonTitleNode.layer.animatePosition(from: CGPoint(x: self.pinButtonTitleNode.frame.width, y: 0.0), to: CGPoint(), duration: 0.2, additive: true) } - } else { - self.pinButtonTitleNode.alpha = isPinned ? 1.0 : 0.0 } }