Fix bad MMS group creation logic

Fixes #6939
Fixes #6938

// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-09-07 20:41:34 -07:00
parent 032eaa4389
commit 5173921ce0

View File

@ -23,7 +23,7 @@ public class GroupUtil {
private static final String TAG = GroupUtil.class.getSimpleName(); private static final String TAG = GroupUtil.class.getSimpleName();
public static String getEncodedId(byte[] groupId, boolean mms) { public static String getEncodedId(byte[] groupId, boolean mms) {
return mms ? ENCODED_MMS_GROUP_PREFIX : ENCODED_SIGNAL_GROUP_PREFIX + Hex.toStringCondensed(groupId); return (mms ? ENCODED_MMS_GROUP_PREFIX : ENCODED_SIGNAL_GROUP_PREFIX) + Hex.toStringCondensed(groupId);
} }
public static byte[] getDecodedId(String groupId) throws IOException { public static byte[] getDecodedId(String groupId) throws IOException {