getBroadcastOwner static method

ID getBroadcastOwner(
  1. ID group
)

Implementation

static ID getBroadcastOwner(ID group) {
  String? name = getGroupSeed(group);
  if (name == null) {
    // Consensus: the owner of group 'everyone@everywhere'
    //            'anyone@anywhere'
    return ID.kAnyone;
  } else {
    // DISCUSS: who should be the owner of group 'xxx@everywhere'?
    //          'anyone@anywhere', or 'xxx.owner@anywhere'
    return ID.parse('$name.owner@anywhere')!;
  }
}