mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Expose voip maxLayer
This commit is contained in:
@@ -136,6 +136,10 @@ final class OngoingCallContext {
|
||||
private let audioSessionDisposable = MetaDisposable()
|
||||
private var networkTypeDisposable: Disposable?
|
||||
|
||||
static var maxLayer: Int32 {
|
||||
return OngoingCallThreadLocalContext.maxLayer()
|
||||
}
|
||||
|
||||
init(account: Account, callSessionManager: CallSessionManager, internalId: CallSessionInternalId, proxyServer: ProxyServerSettings?, initialNetworkType: NetworkType, updatedNetworkType: Signal<NetworkType, NoError>, serializedData: String?, dataSaving: VoiceCallDataSaving) {
|
||||
let _ = setupLogs
|
||||
OngoingCallThreadLocalContext.applyServerConfig(serializedData)
|
||||
|
||||
@@ -71,7 +71,6 @@ typedef NS_ENUM(int32_t, OngoingCallDataSaving) {
|
||||
|
||||
- (void)setIsMuted:(bool)isMuted;
|
||||
- (void)setNetworkType:(OngoingCallNetworkType)networkType;
|
||||
+ (int)getConnectionMaxLayer;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ static int callControllerDataSavingForType(OngoingCallDataSaving type) {
|
||||
}
|
||||
|
||||
+ (int32_t)maxLayer {
|
||||
return tgvoip::VoIPController::connectionMaxLayer;
|
||||
return tgvoip::VoIPController::GetConnectionMaxLayer();
|
||||
}
|
||||
|
||||
- (instancetype _Nonnull)initWithQueue:(id<OngoingCallThreadLocalContextQueue> _Nonnull)queue proxy:(VoipProxyServer * _Nullable)proxy networkType:(OngoingCallNetworkType)networkType dataSaving:(OngoingCallDataSaving)dataSaving {
|
||||
@@ -387,8 +387,4 @@ static int callControllerDataSavingForType(OngoingCallDataSaving type) {
|
||||
}
|
||||
}
|
||||
|
||||
+ (int)getConnectionMaxLayer{
|
||||
return tgvoip::VoIPController::GetConnectionMaxLayer();
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -63,7 +63,7 @@ public final class PresentationCallManager {
|
||||
private var callSettingsDisposable: Disposable?
|
||||
|
||||
public static var voipMaxLayer: Int32 {
|
||||
return OngoingCallContext.
|
||||
return OngoingCallContext.maxLayer
|
||||
}
|
||||
|
||||
public init(account: Account, getDeviceAccessData: @escaping () -> (presentationData: PresentationData, present: (ViewController, Any?) -> Void, openSettings: () -> Void), networkType: Signal<NetworkType, NoError>, audioSession: ManagedAudioSession, callSessionManager: CallSessionManager) {
|
||||
|
||||
Reference in New Issue
Block a user