muteTeam method

Future<void> muteTeam(
  1. String teamId,
  2. bool mute
)

Implementation

Future<void> muteTeam(String teamId, bool mute) async {
  if (!(await haveConnectivity())) {
    return;
  }

  TeamRepo.updateTeamNotify(teamId, mute).then((value) {
    if (!value) {
      messageTip = mute;
      notifyListeners();
    }
  });
  messageTip = !mute;
  notifyListeners();
}