]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/helper/AccountHelper.java
Rename main/master device to primary device
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / helper / AccountHelper.java
index 224ac4da43e77fbba89bfac9b1c0be1f67d5b07f..bae049c51f52ddbff4e2a11459537a2439b72597 100644 (file)
@@ -60,7 +60,7 @@ public class AccountHelper {
             if (account.getAci() == null || account.getPni() == null) {
                 checkWhoAmiI();
             }
-            if (!account.isMasterDevice() && account.getPniIdentityKeyPair() == null) {
+            if (!account.isPrimaryDevice() && account.getPniIdentityKeyPair() == null) {
                 context.getSyncHelper().requestSyncPniIdentity();
             }
             updateAccountAttributes();
@@ -175,7 +175,7 @@ public class AccountHelper {
 
     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.
+        // If this is the primary device, other users can't send messages to this number anymore.
         // If this is a linked device, other users can still send messages, but this device doesn't receive them anymore.
         dependencies.getAccountManager().setGcmId(Optional.empty());