From 55a3792882176f978e775700dd849ae43c688bce Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Tue, 1 Aug 2023 17:36:07 +0200 Subject: [PATCH] Commented the part that removed the recordingView subviews, which seemed to break the voice recording UI. --- Classes/Swift/Chat/Views/ChatConversationViewSwift.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift index 213157f3f..bc807f083 100644 --- a/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift +++ b/Classes/Swift/Chat/Views/ChatConversationViewSwift.swift @@ -1577,9 +1577,11 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll } func stopVoiceRecordPlayer() { - contentMessageView.recordingView.subviews.forEach({ view in + // Commented because this seemed to be what caused the breaking of the voice recording view + /* + contentMessageView.recordingView.subviews.forEach({ view in view.removeFromSuperview() - }) + })*/ resetRecordingProgressBar() self.contentMessageView.recordingWaveView.progress = 0.0 self.contentMessageView.recordingWaveView.setProgress(self.contentMessageView.recordingWaveView.progress, animated: false)