mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update error semantics for the new layer
This commit is contained in:
parent
6e48c4b3e7
commit
0eaef8283e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user