buildMuteTeamNotification static method

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

Implementation

static Future<String> buildMuteTeamNotification(
  String tid,
  NIMMessageNotificationAttachment attachment,
) async {
  if (attachment.chatBanned == true) {
    return S.of().chatTeamNotifyMute(
          await buildMemberListString(tid, attachment.targetIds!),
        );
  } else {
    return S.of().chatTeamNotifyUnMute(
          await buildMemberListString(tid, attachment.targetIds!),
        );
  }
}