Skip to content

Commit 005c7f5

Browse files
author
f41c0r
committed
Disabled signal registration
1 parent a0a61bc commit 005c7f5

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ android {
235235
// defaults
236236
}
237237
staging {
238-
buildConfigField "String", "PUSH_URL", "\"https://textsecure-service-staging.whispersystems.org\""
238+
buildConfigField "String", "TEXTSECURE_URL", "\"https://textsecure-service-staging.whispersystems.org\""
239239
buildConfigField "String", "REDPHONE_MASTER_URL", "\"https://redphone-staging.whispersystems.org\""
240240
buildConfigField "String", "REDPHONE_RELAY_HOST", "\"redphone-staging-relay.whispersystems.org\""
241241
}

src/org/thoughtcrime/securesms/service/RegistrationService.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)