diff --git a/src/org/thoughtcrime/securesms/jobs/RefreshAttributesJob.java b/src/org/thoughtcrime/securesms/jobs/RefreshAttributesJob.java index fb7cdd5e29..7bf25e9d74 100644 --- a/src/org/thoughtcrime/securesms/jobs/RefreshAttributesJob.java +++ b/src/org/thoughtcrime/securesms/jobs/RefreshAttributesJob.java @@ -3,8 +3,6 @@ package org.thoughtcrime.securesms.jobs; import android.content.Context; import android.util.Log; -import org.thoughtcrime.redphone.signaling.RedPhoneAccountAttributes; -import org.thoughtcrime.redphone.signaling.RedPhoneAccountManager; import org.thoughtcrime.securesms.dependencies.InjectableType; import org.thoughtcrime.securesms.util.TextSecurePreferences; import org.whispersystems.jobqueue.JobParameters; @@ -23,7 +21,7 @@ public class RefreshAttributesJob extends ContextJob implements InjectableType { private static final String TAG = RefreshAttributesJob.class.getSimpleName(); @Inject transient SignalServiceAccountManager signalAccountManager; - @Inject transient RedPhoneAccountManager redPhoneAccountManager; +// @Inject transient RedPhoneAccountManager redPhoneAccountManager; public RefreshAttributesJob(Context context) { super(context, JobParameters.newBuilder() @@ -40,14 +38,14 @@ public class RefreshAttributesJob extends ContextJob implements InjectableType { @Override public void onRun() throws IOException { String signalingKey = TextSecurePreferences.getSignalingKey(context); - String gcmRegistrationId = TextSecurePreferences.getGcmRegistrationId(context); +// String gcmRegistrationId = TextSecurePreferences.getGcmRegistrationId(context); int registrationId = TextSecurePreferences.getLocalRegistrationId(context); boolean video = TextSecurePreferences.isWebrtcCallingEnabled(context); boolean fetchesMessages = TextSecurePreferences.isGcmDisabled(context); - String token = signalAccountManager.getAccountVerificationToken(); +// String token = signalAccountManager.getAccountVerificationToken(); - redPhoneAccountManager.createAccount(token, new RedPhoneAccountAttributes(signalingKey, gcmRegistrationId)); +// redPhoneAccountManager.createAccount(token, new RedPhoneAccountAttributes(signalingKey, gcmRegistrationId)); signalAccountManager.setAccountAttributes(signalingKey, registrationId, true, video || fetchesMessages, fetchesMessages); }