]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/Manager.java
Add command to update account attributes
[signal-cli] / src / main / java / org / asamk / signal / Manager.java
index a6dfcae5a7edf779c6421c209bc512c8c6432e98..d51e8b575ef2f884f60ebea2c9b1439040863b35 100644 (file)
@@ -356,6 +356,10 @@ class Manager implements Signal {
         save();
     }
 
+    public void updateAccountAttributes() throws IOException {
+        accountManager.setAccountAttributes(signalingKey, signalProtocolStore.getLocalRegistrationId(), false, true);
+    }
+
     public void unregister() throws IOException {
         // When setting an empty GCM id, the Signal-Server also sets the fetchesMessages property to false.
         // If this is the master device, other users can't send messages to this number anymore.