mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Just showing voice chat controller instead of media
This commit is contained in:
parent
7d335e817a
commit
21e432bc0c
7118
submodules/TelegramCallsUI/Sources/MediaStreamingController.swift
Normal file
7118
submodules/TelegramCallsUI/Sources/MediaStreamingController.swift
Normal file
File diff suppressed because it is too large
Load Diff
@ -103,7 +103,7 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
private var callController: CallController?
|
||||
public let hasOngoingCall = ValuePromise<Bool>(false)
|
||||
private let callState = Promise<PresentationCallState?>(nil)
|
||||
|
||||
// Rename to LiveStreamingController
|
||||
private var groupCallController: VoiceChatController?
|
||||
public var currentGroupCallController: ViewController? {
|
||||
return self.groupCallController
|
||||
@ -665,7 +665,7 @@ public final class SharedAccountContextImpl: SharedAccountContext {
|
||||
|
||||
if call.isStream {
|
||||
strongSelf.hasGroupCallOnScreenPromise.set(true)
|
||||
let groupCallController = MediaStreamComponentController(call: call)
|
||||
let groupCallController = MediaStreamingControllerImpl(sharedContext: strongSelf, accountContext: call.accountContext, call: call) // MediaStreamComponentController(call: call)
|
||||
groupCallController.onViewDidAppear = { [weak self] in
|
||||
if let strongSelf = self {
|
||||
strongSelf.hasGroupCallOnScreenPromise.set(true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user