Rename 'userAgent' to 'signalAgent'.

This wasn't actually being used in the User-Agent header. Instead, it
was used as the value for an X-Signal-Agent header. To avoid confusion,
I'm renaming this.
This commit is contained in:
Greyson Parrelli
2020-01-23 11:28:17 -05:00
parent f1147c10ee
commit a31da7616d
8 changed files with 34 additions and 34 deletions

View File

@@ -57,7 +57,7 @@ public class ApplicationDependencyProvider implements ApplicationDependencies.Pr
public @NonNull SignalServiceAccountManager provideSignalServiceAccountManager() {
return new SignalServiceAccountManager(networkAccess.getConfiguration(context),
new DynamicCredentialsProvider(context),
BuildConfig.USER_AGENT);
BuildConfig.SIGNAL_AGENT);
}
@Override
@@ -65,7 +65,7 @@ public class ApplicationDependencyProvider implements ApplicationDependencies.Pr
return new SignalServiceMessageSender(networkAccess.getConfiguration(context),
new DynamicCredentialsProvider(context),
new SignalProtocolStoreImpl(context),
BuildConfig.USER_AGENT,
BuildConfig.SIGNAL_AGENT,
TextSecurePreferences.isMultiDevice(context),
Optional.fromNullable(IncomingMessageObserver.getPipe()),
Optional.fromNullable(IncomingMessageObserver.getUnidentifiedPipe()),
@@ -78,7 +78,7 @@ public class ApplicationDependencyProvider implements ApplicationDependencies.Pr
: new UptimeSleepTimer();
return new SignalServiceMessageReceiver(networkAccess.getConfiguration(context),
new DynamicCredentialsProvider(context),
BuildConfig.USER_AGENT,
BuildConfig.SIGNAL_AGENT,
new PipeConnectivityListener(),
sleepTimer);
}

View File

@@ -36,7 +36,7 @@ public class AccountManagerFactory {
}
return new SignalServiceAccountManager(new SignalServiceNetworkAccess(context).getConfiguration(number),
uuid, number, password, BuildConfig.USER_AGENT);
uuid, number, password, BuildConfig.SIGNAL_AGENT);
}
/**
@@ -57,7 +57,7 @@ public class AccountManagerFactory {
}
return new SignalServiceAccountManager(new SignalServiceNetworkAccess(context).getConfiguration(number),
null, number, password, BuildConfig.USER_AGENT);
null, number, password, BuildConfig.SIGNAL_AGENT);
}
}