Skip to content

Commit

Permalink
Remove unnecessary config field
Browse files Browse the repository at this point in the history
  • Loading branch information
AsamK committed Apr 6, 2024
1 parent edce33a commit d4e1f9b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import org.asamk.signal.manager.api.RecipientIdentifier;
import org.asamk.signal.manager.api.UnregisteredRecipientException;
import org.asamk.signal.manager.api.UsernameLinkUrl;
import org.asamk.signal.manager.config.ServiceEnvironmentConfig;
import org.asamk.signal.manager.internal.SignalDependencies;
import org.asamk.signal.manager.storage.SignalAccount;
import org.asamk.signal.manager.storage.recipients.RecipientId;
Expand Down Expand Up @@ -34,12 +33,10 @@ public class RecipientHelper {

private final SignalAccount account;
private final SignalDependencies dependencies;
private final ServiceEnvironmentConfig serviceEnvironmentConfig;

public RecipientHelper(final Context context) {
this.account = context.getAccount();
this.dependencies = context.getDependencies();
this.serviceEnvironmentConfig = dependencies.getServiceEnvironmentConfig();
}

public SignalServiceAddress resolveSignalServiceAddress(RecipientId recipientId) {
Expand Down Expand Up @@ -234,7 +231,7 @@ private Map<String, RegisteredUser> getRegisteredUsersV2(
newNumbers,
account.getRecipientStore().getServiceIdToProfileKeyMap(),
token,
serviceEnvironmentConfig.cdsiMrenclave(),
dependencies.getServiceEnvironmentConfig().cdsiMrenclave(),
null,
dependencies.getServiceEnvironmentConfig().netEnvironment(),
newToken -> {
Expand Down

0 comments on commit d4e1f9b

Please sign in to comment.