buildFriendGroup method

void buildFriendGroup(
  1. List<V2TimFriendGroup> friendGroup,
  2. String action
)

Implementation

void buildFriendGroup(List<V2TimFriendGroup> friendGroup, String action) {
  for (var element in friendGroup) {
    var index = _friendGroup.indexWhere((ele) => element.name == ele.name);
    if (index > -1) {
      _friendGroup[index] = element;
    } else {
      _friendGroup.add(element);
    }
  }
  notifyListener(TencentCloudChatContactDataKeys.blockList as T);
}