From 9d7d4bd245d6b86789f2e34cdb946e31a50448b5 Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Fri, 27 Sep 2024 20:29:28 +0800 Subject: [PATCH] Re-disable video chats for now --- submodules/TelegramCallsUI/Sources/VoiceChatController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift index db52366c58..3d6d2ebb00 100644 --- a/submodules/TelegramCallsUI/Sources/VoiceChatController.swift +++ b/submodules/TelegramCallsUI/Sources/VoiceChatController.swift @@ -7098,7 +7098,10 @@ final class VoiceChatContextReferenceContentSource: ContextReferenceContentSourc } public func shouldUseV2VideoChatImpl(context: AccountContext) -> Bool { - var useV2 = true + var useV2 = false + if let data = context.currentAppConfiguration.with({ $0 }).data, let _ = data["ios_killswitch_enable_videochatui_v2"] { + useV2 = true + } if context.sharedContext.immediateExperimentalUISettings.disableCallV2 { useV2 = false }