registerBlockedMember method

List<String> registerBlockedMember(
  1. String otherMember
)

Implementation

List<String> registerBlockedMember(String otherMember) {
  if (!isBlockedMember(otherMember)) {
    var myMemberId = member.documentID;
    MaintainBlocked.registerMemberAsBlocked(myMemberId,
        otherMember); // not waiting, we keep in memory blocked members
    blockedMembers.add(otherMember);
  }
  return blockedMembers;
}