buildKickMemberNotification static method

Future<String> buildKickMemberNotification(
  1. String tid,
  2. NIMMessageNotificationAttachment attachment, {
  3. NIMTeam? team,
})

Implementation

static Future<String> buildKickMemberNotification(
    String tid, NIMMessageNotificationAttachment attachment,
    {NIMTeam? team}) async {
  if (team == null) {
    team = (await NimCore.instance.teamService
            .getTeamInfo(tid, NIMTeamType.typeNormal))
        .data;
  }
  var members = await buildMemberListString(tid, attachment.targetIds!);
  if (team != null && !getIt<TeamProvider>().isGroupTeam(team)) {
    return S.of().chatAdvancedTeamNotifyRemove(members);
  } else {
    return S.of().chatDiscussTeamNotifyRemove(members);
  }
}