diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java b/lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java index 4eea6af0..e80f7901 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java @@ -415,9 +415,9 @@ public class SignalAccount implements Closeable { } public void removeRecipient(final RecipientId recipientId) { + final var recipientAddress = getRecipientStore().resolveRecipientAddress(recipientId); getRecipientStore().deleteRecipientData(recipientId); getMessageCache().deleteMessages(recipientId); - final var recipientAddress = getRecipientStore().resolveRecipientAddress(recipientId); if (recipientAddress.serviceId().isPresent()) { final var serviceId = recipientAddress.serviceId().get(); getAciSessionStore().deleteAllSessions(serviceId);