mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 09:49:30 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user