to match Signal-Android behavior
if (username == null) {
account = SignalAccount.createTemporaryAccount(identityKey, registrationId);
} else {
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();
ProfileKey profileKey = KeyUtils.createProfileKey();
account = SignalAccount.create(dataPath, username, identityKey, registrationId, profileKey);
account.save();