Commented the part that removed the recordingView subviews, which seemed to break the voice recording UI.

This commit is contained in:
QuentinArguillere 2023-08-01 17:36:07 +02:00
parent f272df4f88
commit 55a3792882

View file

@ -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)