Skip to content

Commit

Permalink
[Temp] disable new video chat UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac committed Sep 13, 2024
1 parent 1cd853f commit 6c2083c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions submodules/TelegramCallsUI/Sources/VoiceChatController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7098,14 +7098,15 @@ final class VoiceChatContextReferenceContentSource: ContextReferenceContentSourc
}

private func calculateUseV2(context: AccountContext) -> Bool {
var useV2 = true
/*var useV2 = true
if context.sharedContext.immediateExperimentalUISettings.disableCallV2 {
useV2 = false
}
if let data = context.currentAppConfiguration.with({ $0 }).data, let _ = data["ios_killswitch_disable_videochatui_v2"] {
useV2 = false
}
return useV2
return useV2*/
return false
}

public func makeVoiceChatControllerInitialData(sharedContext: SharedAccountContext, accountContext: AccountContext, call: PresentationGroupCall) -> Signal<Any, NoError> {
Expand Down

0 comments on commit 6c2083c

Please sign in to comment.