mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-26 15:31:12 +00:00
Cleanup
(cherry picked from commit 4902b5fa362d0bb633b98e04b23a32b146d237d4)
This commit is contained in:
parent
5b15e139fd
commit
8d2b9255a6
@ -576,6 +576,10 @@ public final class PresentationCallImpl: PresentationCall {
|
|||||||
if self.receptionDisposable == nil, case .active = sessionState.state {
|
if self.receptionDisposable == nil, case .active = sessionState.state {
|
||||||
self.reception = 4
|
self.reception = 4
|
||||||
|
|
||||||
|
if self.isOutgoing {
|
||||||
|
self.callKitIntegration?.reportOutgoingCallConnected(uuid: sessionState.id, at: Date())
|
||||||
|
}
|
||||||
|
|
||||||
var canUpdate = false
|
var canUpdate = false
|
||||||
self.receptionDisposable = (ongoingContext.reception
|
self.receptionDisposable = (ongoingContext.reception
|
||||||
|> delay(1.0, queue: .mainQueue())
|
|> delay(1.0, queue: .mainQueue())
|
||||||
@ -600,6 +604,7 @@ public final class PresentationCallImpl: PresentationCall {
|
|||||||
self.isVideo = true
|
self.isVideo = true
|
||||||
}
|
}
|
||||||
let previous = self.sessionState
|
let previous = self.sessionState
|
||||||
|
let previousRemoteVideoState = self.previousRemoteVideoState
|
||||||
let previousControl = self.audioSessionControl
|
let previousControl = self.audioSessionControl
|
||||||
self.sessionState = sessionState
|
self.sessionState = sessionState
|
||||||
self.callContextState = callContextState
|
self.callContextState = callContextState
|
||||||
@ -1137,12 +1142,12 @@ public final class PresentationCallImpl: PresentationCall {
|
|||||||
} else {
|
} else {
|
||||||
if let presentationState {
|
if let presentationState {
|
||||||
self.statePromise.set(presentationState)
|
self.statePromise.set(presentationState)
|
||||||
self.updateTone(presentationState, callContextState: callContextState, previous: previous)
|
self.updateTone(presentationState, callContextState: callContextState, previous: previous, previousRemoteVideoState: previousRemoteVideoState)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private func updateTone(_ state: PresentationCallState, callContextState: OngoingCallContextState?, previous: CallSession?) {
|
private func updateTone(_ state: PresentationCallState, callContextState: OngoingCallContextState?, previous: CallSession?, previousRemoteVideoState: PresentationCallState.RemoteVideoState?) {
|
||||||
if self.isMovedToConference {
|
if self.isMovedToConference {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user