received group messages aren't processed as "meta" group stuff, oops.

This commit is contained in:
Jake McGinty
2014-02-17 22:20:43 -08:00
parent fb75d90edc
commit abce678cb4
3 changed files with 9 additions and 2 deletions

View File

@@ -33,6 +33,11 @@ public class GroupUtil {
return groupId.startsWith(ENCODED_GROUP_PREFIX);
}
public static boolean isMetaGroupAction(int groupAction) {
return groupAction > 0
&& groupAction != GroupContext.Type.DELIVER_VALUE;
}
public static String serializeArguments(byte[] id, String name, List<String> members) {
return Base64.encodeBytes(GroupContext.newBuilder()
.setId(ByteString.copyFrom(id))