accept status code 201 for Quicksy registration

This commit is contained in:
Daniel Gultsch 2019-07-03 18:01:46 +02:00
parent feba9a71ee
commit e9099acd97

View file

@ -203,7 +203,7 @@ public class QuickConversationsService extends AbstractQuickConversationsService
os.close(); os.close();
connection.connect(); connection.connect();
final int code = connection.getResponseCode(); final int code = connection.getResponseCode();
if (code == 200) { if (code == 200 || code == 201) {
account.setOption(Account.OPTION_UNVERIFIED, false); account.setOption(Account.OPTION_UNVERIFIED, false);
account.setOption(Account.OPTION_DISABLED, false); account.setOption(Account.OPTION_DISABLED, false);
awaitingAccountStateChange = new CountDownLatch(1); awaitingAccountStateChange = new CountDownLatch(1);