]> nmode's Git Repositories - signal-cli/blobdiff - src/main/java/org/asamk/signal/manager/groups/GroupId.java
Replace Base64 class from libsignal with java.util.Base64
[signal-cli] / src / main / java / org / asamk / signal / manager / groups / GroupId.java
index 9a15de65e5a2f1bca706b25b4f78d0582bbd0aa4..f56e5d38f9c311cac91f74657d2576d182cfe70e 100644 (file)
@@ -1,8 +1,7 @@
 package org.asamk.signal.manager.groups;
 
-import org.whispersystems.util.Base64;
-
 import java.util.Arrays;
+import java.util.Base64;
 
 public abstract class GroupId {
 
@@ -43,7 +42,7 @@ public abstract class GroupId {
     }
 
     public String toBase64() {
-        return Base64.encodeBytes(id);
+        return Base64.getEncoder().encodeToString(id);
     }
 
     @Override