Inline forum improvements

This commit is contained in:
Ali
2022-11-18 18:17:24 +04:00
parent 787b8483c4
commit a98e69cfa0
8 changed files with 75 additions and 34 deletions

View File

@@ -536,6 +536,8 @@ public final class PresentationCallImpl: PresentationCall {
}
}
#if DEBUG
#else
if let audioSessionControl = audioSessionControl, previous == nil || previousControl == nil {
if let callKitIntegration = self.callKitIntegration {
callKitIntegration.applyVoiceChatOutputMode(outputMode: .custom(self.currentAudioOutputValue))
@@ -544,6 +546,7 @@ public final class PresentationCallImpl: PresentationCall {
audioSessionControl.setup(synchronous: true)
}
}
#endif
let mappedVideoState: PresentationCallState.VideoState
let mappedRemoteVideoState: PresentationCallState.RemoteVideoState
@@ -866,9 +869,13 @@ public final class PresentationCallImpl: PresentationCall {
}
if tone != self.toneRenderer?.tone {
if let tone = tone {
#if DEBUG
let _ = tone
#else
let toneRenderer = PresentationCallToneRenderer(tone: tone)
self.toneRenderer = toneRenderer
toneRenderer.setAudioSessionActive(self.isAudioSessionActive)
#endif
} else {
self.toneRenderer = nil
}
@@ -1045,6 +1052,8 @@ public final class PresentationCallImpl: PresentationCall {
|> delay(1.0, queue: Queue.mainQueue())
))
#if DEBUG
#else
if let audioSessionControl = self.audioSessionControl {
if let callKitIntegration = self.callKitIntegration {
callKitIntegration.applyVoiceChatOutputMode(outputMode: .custom(self.currentAudioOutputValue))
@@ -1052,6 +1061,7 @@ public final class PresentationCallImpl: PresentationCall {
audioSessionControl.setOutputMode(.custom(output))
}
}
#endif
}
public func debugInfo() -> Signal<(String, String), NoError> {