Don't start voice chat recording on cancel

This commit is contained in:
Ilya Laktyushin
2021-03-13 22:52:43 +04:00
parent 0979e02ab7
commit 139a36eb7b

View File

@@ -1822,7 +1822,7 @@ public final class VoiceChatController: ViewController {
}
let controller = voiceChatTitleEditController(sharedContext: strongSelf.context.sharedContext, account: strongSelf.context.account, forceTheme: strongSelf.darkTheme, title: presentationData.strings.VoiceChat_StartRecordingTitle, text: presentationData.strings.VoiceChat_StartRecordingText, placeholder: presentationData.strings.VoiceChat_RecordingTitlePlaceholder, value: nil, apply: { title in
if let strongSelf = self {
if let strongSelf = self, let title = title {
strongSelf.call.setShouldBeRecording(true, title: title)
strongSelf.presentUndoOverlay(content: .voiceChatRecording(text: strongSelf.presentationData.strings.VoiceChat_RecordingStarted), action: { _ in return false })