buildInviteMemberNotification static method
Implementation
static Future<String> buildInviteMemberNotification(String tid,
String fromAccId, NIMMemberChangeAttachment attachment) async {
var fromName = await getTeamMemberDisplayName(tid, fromAccId);
var memberNames = await buildMemberListString(tid, attachment.targets!,
fromAccount: fromAccId, needTeamNick: false);
var team = (await NimCore.instance.teamService.queryTeam(tid)).data;
if (team != null && !getIt<TeamProvider>().isGroupTeam(team)) {
return S.of().chatAdviceTeamNotifyInvite(fromName, memberNames);
} else {
return S.of().chatDiscussTeamNotifyInvite(fromName, memberNames);
}
}