if (username == null) {
account = SignalAccount.createTemporaryAccount(identityKey, registrationId);
} else {
+ account.getSignalProtocolStore().saveIdentity(username, identityKey.getPublicKey(), TrustLevel.TRUSTED_VERIFIED);
+
ProfileKey profileKey = KeyUtils.createProfileKey();
account = SignalAccount.create(dataPath, username, identityKey, registrationId, profileKey);
account.save();
}
private byte[] getSenderCertificate() throws IOException {
- byte[] certificate = accountManager.getSenderCertificate();
+ // TODO support UUID capable sender certificates
+ // byte[] certificate = accountManager.getSenderCertificate();
+ byte[] certificate = accountManager.getSenderCertificateLegacy();
// TODO cache for a day
return certificate;
}