From f1d473e8121b9a16c48c2a40c491ba504aa0fdf1 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Tue, 27 Oct 2020 19:01:09 +0400 Subject: [PATCH] WIP --- submodules/SettingsUI/Sources/DebugController.swift | 6 +++--- .../TelegramCallsUI/Sources/GroupCallController.swift | 5 ++--- submodules/TelegramVoip/Sources/GroupCallContext.swift | 4 ++-- .../TgVoipWebrtc/Sources/GroupCallThreadLocalContext.mm | 4 ++-- submodules/TgVoipWebrtc/tgcalls | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/submodules/SettingsUI/Sources/DebugController.swift b/submodules/SettingsUI/Sources/DebugController.swift index c57e4dc54f..59060fa334 100644 --- a/submodules/SettingsUI/Sources/DebugController.swift +++ b/submodules/SettingsUI/Sources/DebugController.swift @@ -738,12 +738,12 @@ private enum DebugControllerEntry: ItemListNodeEntry { }) case .voiceConference: return ItemListDisclosureItem(presentationData: presentationData, title: "Voice Conference (Test)", label: "", sectionId: self.section, style: .blocks, action: { - /*guard let context = arguments.context else { + guard let context = arguments.context else { return } let controller = GroupCallController(context: context) controller.navigationPresentation = .modal - arguments.pushController(controller)*/ + arguments.pushController(controller) }) case let .preferredVideoCodec(_, title, value, isSelected): return ItemListCheckboxItem(presentationData: presentationData, title: title, style: .right, checked: isSelected, zeroSeparatorInsets: false, sectionId: self.section, action: { @@ -824,7 +824,7 @@ private func debugControllerEntries(presentationData: PresentationData, loggingS entries.append(.playerEmbedding(experimentalSettings.playerEmbedding)) entries.append(.playlistPlayback(experimentalSettings.playlistPlayback)) - //entries.append(.voiceConference) + entries.append(.voiceConference) let codecs: [(String, String?)] = [ ("No Preference", nil), diff --git a/submodules/TelegramCallsUI/Sources/GroupCallController.swift b/submodules/TelegramCallsUI/Sources/GroupCallController.swift index cb2ae6f686..e1455159a5 100644 --- a/submodules/TelegramCallsUI/Sources/GroupCallController.swift +++ b/submodules/TelegramCallsUI/Sources/GroupCallController.swift @@ -10,8 +10,7 @@ import TelegramAudio import AccountContext public final class GroupCallController: ViewController { -} -/* private final class Node: ViewControllerTracingNode { + private final class Node: ViewControllerTracingNode { private let context: AccountContext private let presentationData: PresentationData @@ -146,4 +145,4 @@ public final class GroupCallController: ViewController { self.controllerNode.containerLayoutUpdated(layout, transition: transition) } } -*/ + diff --git a/submodules/TelegramVoip/Sources/GroupCallContext.swift b/submodules/TelegramVoip/Sources/GroupCallContext.swift index 7536c28b23..d61fd85c82 100644 --- a/submodules/TelegramVoip/Sources/GroupCallContext.swift +++ b/submodules/TelegramVoip/Sources/GroupCallContext.swift @@ -2,7 +2,7 @@ import Foundation import SwiftSignalKit import TgVoipWebrtc -/*private final class ContextQueueImpl: NSObject, OngoingCallThreadLocalContextQueueWebrtc { +private final class ContextQueueImpl: NSObject, OngoingCallThreadLocalContextQueueWebrtc { private let queue: Queue init(queue: Queue) { @@ -1467,4 +1467,4 @@ public final class GroupCallContext { } } } -*/ + diff --git a/submodules/TgVoipWebrtc/Sources/GroupCallThreadLocalContext.mm b/submodules/TgVoipWebrtc/Sources/GroupCallThreadLocalContext.mm index ec47bfd261..0d035d8f3b 100644 --- a/submodules/TgVoipWebrtc/Sources/GroupCallThreadLocalContext.mm +++ b/submodules/TgVoipWebrtc/Sources/GroupCallThreadLocalContext.mm @@ -1,7 +1,7 @@ #import -/*#import "group/GroupInstanceImpl.h" +#import "group/GroupInstanceImpl.h" @interface GroupCallThreadLocalContext () { id _queue; @@ -55,4 +55,4 @@ } @end -*/ + diff --git a/submodules/TgVoipWebrtc/tgcalls b/submodules/TgVoipWebrtc/tgcalls index 64f96a1b4f..4f7501d281 160000 --- a/submodules/TgVoipWebrtc/tgcalls +++ b/submodules/TgVoipWebrtc/tgcalls @@ -1 +1 @@ -Subproject commit 64f96a1b4fcfb8afdb0fb7749082cb42cdad7901 +Subproject commit 4f7501d281b851e6302b2a2d7298c733eee82414