buildMuteTeamNotification static method

Future<String> buildMuteTeamNotification(
  1. String tid,
  2. NIMMuteMemberAttachment attachment
)

Implementation

static Future<String> buildMuteTeamNotification(
    String tid, NIMMuteMemberAttachment attachment) async {
  if (attachment.mute) {
    return S.of().chatTeamNotifyMute(
        await buildMemberListString(tid, attachment.targets!));
  } else {
    return S.of().chatTeamNotifyUnMute(
        await buildMemberListString(tid, attachment.targets!));
  }
}