muteConversation method

void muteConversation(
  1. ConversationInfo info,
  2. bool mute
)

Implementation

void muteConversation(ConversationInfo info, bool mute) async {
  if (await haveConnectivity()) {
    if (info.conversation.type == NIMConversationType.p2p) {
      ChatMessageRepo.setNotify(info.targetId, !mute);
    } else if (info.conversation.type == NIMConversationType.team ||
        info.conversation.type == NIMConversationType.superTeam) {
      TeamRepo.updateTeamNotify(info.targetId, mute);
    }
  }
}