getImJoinTargets method

Set<String> getImJoinTargets()

Implementation

Set<String> getImJoinTargets() {
  final classInfo = _classInfoObs.getClassInfo();
  final targets = <String>{
    classInfo.roomInfo.chatGroup,
    classInfo.roomInfo.cmdGroup,
  };

  if (isGroupRoom()) {
    // final effectiveChatTarget = getEffectiveChatTarget();
    // final effectiveCmdTarget = getEffectiveCmdTarget();
    // if (effectiveChatTarget.isNotEmpty) {
    //   targets.add(effectiveChatTarget);
    // }
    // if (effectiveCmdTarget.isNotEmpty) {
    //   targets.add(effectiveCmdTarget);
    // }
  }
  targets.removeWhere((groupId) => groupId.isEmpty);
  return targets;
}