@@ -260,16 +260,17 @@ private void handleCommonRegistration(TextSecureAccountManager accountManager, S
260260 DatabaseFactory .getIdentityDatabase (this ).saveIdentity (self .getRecipientId (), identityKey .getPublicKey ());
261261 DirectoryHelper .refreshDirectory (this , accountManager , number );
262262
263- if (GooglePlayServicesUtil .isGooglePlayServicesAvailable (this ) == ConnectionResult .SUCCESS &&
264- !BuildConfig .FORCE_WEBSOCKETS )
265- {
266- RedPhoneAccountManager redPhoneAccountManager = new RedPhoneAccountManager (BuildConfig .REDPHONE_MASTER_URL ,
267- new RedPhoneTrustStore (this ),
268- number , password );
269- String verificationToken = accountManager .getAccountVerificationToken ();
270- redPhoneAccountManager .createAccount (verificationToken , new RedPhoneAccountAttributes (signalingKey ,
271- TextSecurePreferences .getGcmRegistrationId (this )));
272- }
263+ //if (GooglePlayServicesUtil.isGooglePlayServicesAvailable(this) == ConnectionResult.SUCCESS &&
264+ // !BuildConfig.FORCE_WEBSOCKETS)
265+ //{
266+ // RedPhoneAccountManager redPhoneAccountManager = new RedPhoneAccountManager(BuildConfig.REDPHONE_MASTER_URL,
267+ // new RedPhoneTrustStore(this),
268+ // number, password);
269+ // String verificationToken = accountManager.getAccountVerificationToken();
270+ // redPhoneAccountManager.createAccount(verificationToken, new RedPhoneAccountAttributes(signalingKey,
271+ // TextSecurePreferences.getGcmRegistrationId(this)));
272+ //}
273+ accountManager .getAccountVerificationToken ();
273274
274275 DirectoryRefreshListener .schedule (this );
275276 }
0 commit comments