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 697c719659
commit a5d421f9f9

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)