From ef727ee08e9b2b2a98fc1e16c1bed4117ad28fa1 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 10 Jun 2022 17:04:13 +0400 Subject: [PATCH] Fix build --- .../TelegramVoip/Sources/OngoingCallContext.swift | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/submodules/TelegramVoip/Sources/OngoingCallContext.swift b/submodules/TelegramVoip/Sources/OngoingCallContext.swift index 22a828ea2d..39523582e1 100644 --- a/submodules/TelegramVoip/Sources/OngoingCallContext.swift +++ b/submodules/TelegramVoip/Sources/OngoingCallContext.swift @@ -738,14 +738,11 @@ public final class OngoingCallContext { private var signalingConnectionManager: QueueLocalObject? public static func versions(includeExperimental: Bool, includeReference: Bool) -> [(version: String, supportsVideo: Bool)] { - if @available(iOS 11.0, *) { - #if DEBUG - if "".isEmpty { - return [("5.0.0", true)] - } - #endif + #if os(iOS) && DEBUG + if "".isEmpty { + return [("5.0.0", true)] } - + #endif if debugUseLegacyVersionForReflectors { return [(OngoingCallThreadLocalContext.version(), true)]