]> nmode's Git Repositories - signal-cli/commitdiff
Resolve self address after setting new PNI
authorAsamK <asamk@gmx.de>
Sun, 15 Oct 2023 16:53:24 +0000 (18:53 +0200)
committerAsamK <asamk@gmx.de>
Sun, 15 Oct 2023 16:53:24 +0000 (18:53 +0200)
lib/src/main/java/org/asamk/signal/manager/storage/SignalAccount.java

index 6b63920e4c67828e59bc25c5a724d03a43745f13..2cfd5cd7afe0e9ed6859a7b29d5be220bbc70907 100644 (file)
@@ -1386,6 +1386,7 @@ public class SignalAccount implements Closeable {
         }
 
         this.pniAccountData.setServiceId(updatedPni);
         }
 
         this.pniAccountData.setServiceId(updatedPni);
+        getRecipientTrustedResolver().resolveSelfRecipientTrusted(getSelfRecipientAddress());
         trustSelfIdentity(ServiceIdType.PNI);
         save();
     }
         trustSelfIdentity(ServiceIdType.PNI);
         save();
     }