Quicksy: accept http status code 201 for account creation
This commit is contained in:
		
							parent
							
								
									60b23882fd
								
							
						
					
					
						commit
						47d619b28e
					
				@ -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));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user