[Temp] conference calls

This commit is contained in:
Isaac 2024-12-12 23:38:29 +08:00
parent 873c2df10d
commit c22fe5d979
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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