Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion NextcloudTalk/Rooms/NCRoomsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,9 @@ class NCRoomsManager: NSObject, CallViewControllerDelegate {
// Set room as active
self.activeRooms[token] = controller
} else {
if self.joiningAttempts < 3 && statusCode != 403 {
// Some request are not recoverable by a retry - don't even try it
let nonRecoverableErrorCodes = [403, 429, 503]
if self.joiningAttempts < 3 && !nonRecoverableErrorCodes.contains(statusCode) {
NCLog.log("Error joining room, retrying. \(self.joiningAttempts)")
self.joiningAttempts += 1
self.joinRoomHelper(token, forAccountId: accountId, forCall: call)
Expand Down
Loading