buildKickMemberNotification static method
Future<String>
buildKickMemberNotification(
- String tid,
- NIMMessageNotificationAttachment attachment, {
- 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);
}
}