From 139a36eb7ba0180fdc46fa9b817298efb603d5e2 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 13 Mar 2021 22:52:43 +0400 Subject: [PATCH] Don't start voice chat recording on cancel --- submodules/TelegramCallsUI/Sources/VoiceChatController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index fd7aced9b9..a736a1d02a 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -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 })