package org.asamk.signal.manager;
import org.asamk.signal.manager.groups.GroupIdV1;
+import org.asamk.signal.manager.storage.recipients.RecipientId;
import org.whispersystems.signalservice.api.push.SignalServiceAddress;
import java.util.Objects;
class RetrieveProfileAction implements HandleAction {
- private final SignalServiceAddress address;
+ private final RecipientId recipientId;
- public RetrieveProfileAction(final SignalServiceAddress address) {
- this.address = address;
+ public RetrieveProfileAction(final RecipientId recipientId) {
+ this.recipientId = recipientId;
}
@Override
public void execute(Manager m) throws Throwable {
- m.getRecipientProfile(address, true);
+ m.getRecipientProfile(recipientId, true);
}
@Override
final RetrieveProfileAction that = (RetrieveProfileAction) o;
- return address.equals(that.address);
+ return recipientId.equals(that.recipientId);
}
@Override
public int hashCode() {
- return address.hashCode();
+ return recipientId.hashCode();
}
}