Do not fallback to REST for resumable upload spec on ratelimit.

This commit is contained in:
Clark
2024-04-12 12:46:06 -04:00
committed by Greyson Parrelli
parent a2e0468cd9
commit 318b59a6b2

View File

@@ -868,6 +868,9 @@ public class SignalServiceMessageSender {
} catch (WebSocketUnavailableException e) {
Log.w(TAG, "[getResumableUploadSpec] Pipe unavailable, falling back... (" + e.getClass().getSimpleName() + ": " + e.getMessage() + ")");
} catch (IOException e) {
if (e instanceof RateLimitException) {
throw e;
}
Log.w(TAG, "Failed to retrieve attachment upload attributes using pipe. Falling back...");
}