From 0eaef8283e3687484dce4fc53dc3e31e34ad986e Mon Sep 17 00:00:00 2001 From: Ali <> Date: Fri, 19 Mar 2021 20:08:44 +0400 Subject: [PATCH] Update error semantics for the new layer --- submodules/TelegramCore/Sources/GroupCalls.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/TelegramCore/Sources/GroupCalls.swift b/submodules/TelegramCore/Sources/GroupCalls.swift index 777e43d01d..2974e2eee0 100644 --- a/submodules/TelegramCore/Sources/GroupCalls.swift +++ b/submodules/TelegramCore/Sources/GroupCalls.swift @@ -2136,12 +2136,12 @@ public func getAudioBroadcastPart(dataSource: AudioBroadcastDataSource, callId: status: .rejoinNeeded, responseTimestamp: responseTimestamp )) - } else if error.errorDescription.hasPrefix("FLOOD_WAIT") { + } else if error.errorDescription.hasPrefix("FLOOD_WAIT") || error.errorDescription == "TIME_TOO_BIG" { return .single(GetAudioBroadcastPartResult( status: .notReady, responseTimestamp: responseTimestamp )) - } else if error.errorDescription == "TIME_INVALID" || error.errorDescription == "TIME_TOO_SMALL" || error.errorDescription == "TIME_TOO_BIG" { + } else if error.errorDescription == "TIME_INVALID" || error.errorDescription == "TIME_TOO_SMALL" { return .single(GetAudioBroadcastPartResult( status: .resyncNeeded, responseTimestamp: responseTimestamp