From 47d619b28eb55732657b27249f9b8f4aefb015a6 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 19 Jan 2021 22:26:27 +0100 Subject: [PATCH] Quicksy: accept http status code 201 for account creation --- .../siacs/conversations/services/QuickConversationsService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quicksy/java/eu/siacs/conversations/services/QuickConversationsService.java b/src/quicksy/java/eu/siacs/conversations/services/QuickConversationsService.java index c5d1d7b9b..0b56a00f9 100644 --- a/src/quicksy/java/eu/siacs/conversations/services/QuickConversationsService.java +++ b/src/quicksy/java/eu/siacs/conversations/services/QuickConversationsService.java @@ -134,7 +134,7 @@ public class QuickConversationsService extends AbstractQuickConversationsService connection.setReadTimeout(Config.SOCKET_TIMEOUT * 1000); setHeader(connection); final int code = connection.getResponseCode(); - if (code == 200) { + if (code == 200 || code == 201) { createAccountAndWait(phoneNumber, 0L); } else if (code == 429) { createAccountAndWait(phoneNumber, retryAfter(connection));