mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Mark our own identity key as trusted initially
to match Signal-Android behavior
This commit is contained in:
parent
995de3ef5b
commit
5df8f32820
1 changed files with 2 additions and 0 deletions
|
@ -258,6 +258,8 @@ public class Manager implements Signal {
|
||||||
if (username == null) {
|
if (username == null) {
|
||||||
account = SignalAccount.createTemporaryAccount(identityKey, registrationId);
|
account = SignalAccount.createTemporaryAccount(identityKey, registrationId);
|
||||||
} else {
|
} else {
|
||||||
|
account.getSignalProtocolStore().saveIdentity(username, identityKey.getPublicKey(), TrustLevel.TRUSTED_VERIFIED);
|
||||||
|
|
||||||
ProfileKey profileKey = KeyUtils.createProfileKey();
|
ProfileKey profileKey = KeyUtils.createProfileKey();
|
||||||
account = SignalAccount.create(dataPath, username, identityKey, registrationId, profileKey);
|
account = SignalAccount.create(dataPath, username, identityKey, registrationId, profileKey);
|
||||||
account.save();
|
account.save();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue