X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/8bcd8d87d219ae0496986cba4bd6b89f3b2ad6f6..5d83e149b3ed61683da20bba6703a37db66f93cf:/lib/src/main/java/org/asamk/signal/manager/UntrustedIdentityException.java diff --git a/lib/src/main/java/org/asamk/signal/manager/UntrustedIdentityException.java b/lib/src/main/java/org/asamk/signal/manager/UntrustedIdentityException.java index 3b90b9e4..318afd26 100644 --- a/lib/src/main/java/org/asamk/signal/manager/UntrustedIdentityException.java +++ b/lib/src/main/java/org/asamk/signal/manager/UntrustedIdentityException.java @@ -1,27 +1,23 @@ package org.asamk.signal.manager; -import org.whispersystems.signalservice.api.push.SignalServiceAddress; +import org.asamk.signal.manager.storage.recipients.RecipientAddress; public class UntrustedIdentityException extends Exception { - private final SignalServiceAddress sender; - private final Integer senderDevice; + private final RecipientAddress sender; + private final int senderDevice; - public UntrustedIdentityException(final SignalServiceAddress sender) { - this(sender, null); - } - - public UntrustedIdentityException(final SignalServiceAddress sender, final Integer senderDevice) { + public UntrustedIdentityException(final RecipientAddress sender, final int senderDevice) { super("Untrusted identity: " + sender.getIdentifier()); this.sender = sender; this.senderDevice = senderDevice; } - public SignalServiceAddress getSender() { + public RecipientAddress getSender() { return sender; } - public Integer getSenderDevice() { + public int getSenderDevice() { return senderDevice; } }