});
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) {
} catch (UnregisteredRecipientException e) {
continue;
}
- account.getSessionStore().deleteAllSessions(recipientId);
+ account.getAciSessionStore().deleteAllSessions(recipientId);
}
}
}
.computeSafetyNumber(identityInfo.getRecipientId(), identityInfo.getIdentityKey()),
scannableFingerprint == null ? null : scannableFingerprint.getSerialized(),
identityInfo.getTrustLevel(),
- identityInfo.getDateAdded());
+ identityInfo.getDateAddedTimestamp());
}
@Override