]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/RegistrationManager.java
Ignore set profile failure if libzkgroup is missing
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / RegistrationManager.java
index 7cc0a7bcce80c66dd41e5efef0efa022b903b818..1b00e562a0af3a9a6929d04d88e8a3ac02c8155e 100644 (file)
@@ -184,7 +184,11 @@ public class RegistrationManager implements Closeable {
 
             m.refreshPreKeys();
             // Set an initial empty profile so user can be added to groups
-            m.setProfile(null, null, null, null, null);
+            try {
+                m.setProfile(null, null, null, null, null);
+            } catch (NoClassDefFoundError e) {
+                logger.warn("Failed to set default profile: {}", e.getMessage());
+            }
             if (response.isStorageCapable()) {
                 m.retrieveRemoteStorage();
             }