diff --git a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift index 9f949769df..001fd935a9 100644 --- a/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatMessageInteractiveInstantVideoNode/Sources/ChatMessageInteractiveInstantVideoNode.swift @@ -617,8 +617,11 @@ public class ChatMessageInteractiveInstantVideoNode: ASDisplayNode { } if let updatedAudioTranscriptionState = updatedAudioTranscriptionState { + let previous = strongSelf.audioTranscriptionState strongSelf.audioTranscriptionState = updatedAudioTranscriptionState - strongSelf.updateTranscriptionExpanded?(strongSelf.audioTranscriptionState) + if previous != updatedAudioTranscriptionState { + strongSelf.updateTranscriptionExpanded?(strongSelf.audioTranscriptionState) + } } if let updatedTranscriptionText = updatedTranscriptionText { strongSelf.audioTranscriptionText = updatedTranscriptionText