mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
[Temp] conference calls
This commit is contained in:
parent
873c2df10d
commit
c22fe5d979
@ -564,7 +564,7 @@ public final class PresentationCallImpl: PresentationCall {
|
||||
self.audioSessionShouldBeActive.set(true)
|
||||
}
|
||||
}
|
||||
case let .active(id, key, _, connections, maxLayer, version, customParameters, allowsP2P, conferenceCall):
|
||||
case let .active(id, key, keyVisualHash, connections, maxLayer, version, customParameters, allowsP2P, conferenceCall):
|
||||
if let conferenceCall, self.conferenceCallDisposable == nil {
|
||||
presentationState = PresentationCallState(state: .connecting(nil), videoState: mappedVideoState, remoteVideoState: mappedRemoteVideoState, remoteAudioState: mappedRemoteAudioState, remoteBatteryLevel: mappedRemoteBatteryLevel)
|
||||
|
||||
@ -640,7 +640,7 @@ public final class PresentationCallImpl: PresentationCall {
|
||||
case .connected:
|
||||
let timestamp = startTimestamp ?? CFAbsoluteTimeGetCurrent()
|
||||
startTimestamp = timestamp
|
||||
mappedState = .active(timestamp, nil, Data())
|
||||
mappedState = .active(timestamp, nil, keyVisualHash)
|
||||
}
|
||||
|
||||
var mappedLocalVideoState: PresentationCallState.VideoState = .inactive
|
||||
|
@ -1679,6 +1679,9 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
if encryptionKey == nil {
|
||||
encryptionKey = Data(count: 256)
|
||||
}
|
||||
if "".isEmpty {
|
||||
encryptionKey = nil
|
||||
}
|
||||
#endif
|
||||
|
||||
genericCallContext = .call(OngoingGroupCallContext(audioSessionActive: self.audioSessionActive.get(), video: self.videoCapturer, requestMediaChannelDescriptions: { [weak self] ssrcs, completion in
|
||||
|
Loading…
x
Reference in New Issue
Block a user