Quicksy: accept http status code 201 for account creation

This commit is contained in:
Daniel Gultsch 2021-01-19 22:26:27 +01:00
parent 60b23882fd
commit 47d619b28e
1 changed files with 1 additions and 1 deletions

View File

@ -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));