getFriendsList method

Future<List<FullUserInfo>> getFriendsList({
  1. required List<String> userIDList,
  2. String? operationID,
})

获取指定好友的昵称、头像、备注,此函数从 APP 本地获取,建议一次最大10000个

Implementation

Future<List<FullUserInfo>> getFriendsList({
  required List<String> userIDList,
  String? operationID,
}) async {
  ReceivePort receivePort = ReceivePort();
  OpenIMManager._sendPort.send(_PortModel(
    method: _PortMethod.getFriendsList,
    data: {
      'operationID': IMUtils.checkOperationID(operationID),
      'userIDList': userIDList,
    },
    sendPort: receivePort.sendPort,
  ));
  _PortResult result = await receivePort.first;
  receivePort.close();

  return result.value;
}