mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix audio session state
This commit is contained in:
parent
c64a28f022
commit
b2f3ed1491
@ -226,8 +226,6 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
self.requestCall()
|
|
||||||
|
|
||||||
self.groupCallParticipantUpdatesDisposable = (self.account.stateManager.groupCallParticipantUpdates
|
self.groupCallParticipantUpdatesDisposable = (self.account.stateManager.groupCallParticipantUpdates
|
||||||
|> deliverOnMainQueue).start(next: { [weak self] updates in
|
|> deliverOnMainQueue).start(next: { [weak self] updates in
|
||||||
guard let strongSelf = self else {
|
guard let strongSelf = self else {
|
||||||
@ -255,6 +253,8 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
self.requestCall()
|
||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
deinit {
|
||||||
@ -489,7 +489,8 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
|||||||
self.callContext?.stop()
|
self.callContext?.stop()
|
||||||
self.callContext = nil
|
self.callContext = nil
|
||||||
|
|
||||||
self.updateSessionState(internalState: .requesting, audioSessionControl: self.audioSessionControl)
|
self.internalState = .requesting
|
||||||
|
self.isCurrentlyConnecting = nil
|
||||||
|
|
||||||
enum CallError {
|
enum CallError {
|
||||||
case generic
|
case generic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user