X-Git-Url: https://git.nmode.ca/signal-cli/blobdiff_plain/6ffeb7c4313e589a93b9d8201c85aba95b482e48..e83f43065ecd7922de75ea4f9262d6f2770369b2:/src/main/java/org/asamk/signal/json/JsonGroupInfo.java diff --git a/src/main/java/org/asamk/signal/json/JsonGroupInfo.java b/src/main/java/org/asamk/signal/json/JsonGroupInfo.java index f00ace99..01e39900 100644 --- a/src/main/java/org/asamk/signal/json/JsonGroupInfo.java +++ b/src/main/java/org/asamk/signal/json/JsonGroupInfo.java @@ -2,16 +2,10 @@ package org.asamk.signal.json; import org.asamk.signal.manager.api.MessageEnvelope; -import java.util.Base64; - record JsonGroupInfo(String groupId, String type) { static JsonGroupInfo from(MessageEnvelope.Data.GroupContext groupContext) { return new JsonGroupInfo(groupContext.groupId().toBase64(), groupContext.isGroupUpdate() ? "UPDATE" : "DELIVER"); } - - static JsonGroupInfo from(byte[] groupId) { - return new JsonGroupInfo(Base64.getEncoder().encodeToString(groupId), "DELIVER"); - } }