getBroadcastFounder static method

ID getBroadcastFounder(
  1. ID group
)

Implementation

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