Video message recording improvements

This commit is contained in:
Ilya Laktyushin
2024-01-14 17:31:02 +04:00
parent f34d0913df
commit 42421342b8
4 changed files with 51 additions and 3 deletions

View File

@@ -1778,9 +1778,16 @@ public class ChatMessageInteractiveInstantVideoNode: ASDisplayNode {
if !self.animatedFadeIn {
self.animatedFadeIn = true
self.dateAndStatusNode.layer.animateAlpha(from: 0.0, to: self.dateAndStatusNode.alpha, duration: 0.15, delay: 0.18)
if let durationNode = self.durationNode {
durationNode.layer.animateAlpha(from: 0.0, to: durationNode.alpha, duration: 0.15, delay: 0.18)
}
if let durationBackgroundNode = self.durationBackgroundNode {
durationBackgroundNode.layer.animateAlpha(from: 0.0, to: durationBackgroundNode.alpha, duration: 0.15, delay: 0.18)
}
if let audioTranscriptionButton = self.audioTranscriptionButton {
audioTranscriptionButton.layer.animateAlpha(from: 0.0, to: audioTranscriptionButton.alpha, duration: 0.15, delay: 0.18)
}
}
}