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