From ebae12f11d44a28b371557e06a76f703ba9508dc Mon Sep 17 00:00:00 2001 From: Brett <> Date: Fri, 17 Nov 2023 16:45:22 +0800 Subject: [PATCH] fix: 'Fix return value type of 'getFriendsInfo'. --- lib/src/manager/im_friendship_manager.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/manager/im_friendship_manager.dart b/lib/src/manager/im_friendship_manager.dart index b87e0df..722490e 100644 --- a/lib/src/manager/im_friendship_manager.dart +++ b/lib/src/manager/im_friendship_manager.dart @@ -15,7 +15,7 @@ class FriendshipManager { /// Query Friend Information /// [userIDList] List of user IDs - Future> getFriendsInfo({ + Future> getFriendsInfo({ required List userIDList, String? operationID, }) => @@ -26,7 +26,7 @@ class FriendshipManager { "userIDList": userIDList, "operationID": Utils.checkOperationID(operationID), })) - .then((value) => Utils.toList(value, (v) => FriendInfo.fromJson(v))); + .then((value) => Utils.toList(value, (v) => FullUserInfo.fromJson(v))); /// Send a Friend Request, the other party needs to accept the request to become friends. /// [userID] User ID to be invited