X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/484daa4c69bf9c1da451585fdbcc91a40ed00053..dc8b83a1109865a4a375b21c3838412d9e2d9215:/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java diff --git a/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java b/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java index 21d43fa5..54a6b917 100644 --- a/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java +++ b/lib/src/main/java/org/asamk/signal/manager/ManagerImpl.java @@ -167,7 +167,8 @@ class ManagerImpl implements Manager { }); disposable.add(account.getIdentityKeyStore().getIdentityChanges().subscribe(recipientId -> { logger.trace("Archiving old sessions for {}", recipientId); - account.getSessionStore().archiveSessions(recipientId); + account.getAciSessionStore().archiveSessions(recipientId); + account.getPniSessionStore().archiveSessions(recipientId); account.getSenderKeyStore().deleteSharedWith(recipientId); final var profile = account.getProfileStore().getProfile(recipientId); if (profile != null) { @@ -688,7 +689,7 @@ class ManagerImpl implements Manager { } catch (UnregisteredRecipientException e) { continue; } - account.getSessionStore().deleteAllSessions(recipientId); + account.getAciSessionStore().deleteAllSessions(recipientId); } } }