From 0a175bb8b1eb8d4a40c66107ca77a2ff33212bf9 Mon Sep 17 00:00:00 2001 From: Brett <99468005+std-s@users.noreply.github.com> Date: Fri, 24 Oct 2025 11:01:38 +0800 Subject: [PATCH] feat: https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.3-patch.10 --- CHANGELOG.md | 4 +++ lib/src/manager/im_friendship_manager.dart | 11 +++++++ lib/src/manager/im_group_manager.dart | 37 ++++++++++++++++------ lib/src/openim.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 44 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffa28d1..829beed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.8.3+hotfix.10.1 + +- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.3-patch.10) + ## 3.8.3+hotfix.10 - [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.3-patch.10) diff --git a/lib/src/manager/im_friendship_manager.dart b/lib/src/manager/im_friendship_manager.dart index 5d3c310..36234f2 100644 --- a/lib/src/manager/im_friendship_manager.dart +++ b/lib/src/manager/im_friendship_manager.dart @@ -299,6 +299,17 @@ class FriendshipManager { .then((value) => value); } + Future getFriendApplicationUnhandledCount(GetFriendApplicationUnhandledCountReq req, + {String? operationID}) => + _channel + .invokeMethod( + 'getFriendApplicationUnhandledCount', + _buildParam({ + 'req': req.toJson(), + 'operationID': Utils.checkOperationID(operationID), + })) + .then((value) => int.parse(value)); + static Map _buildParam(Map param) { param["ManagerName"] = "friendshipManager"; param = Utils.cleanMap(param); diff --git a/lib/src/manager/im_group_manager.dart b/lib/src/manager/im_group_manager.dart index 7a3b2d8..b14fceb 100644 --- a/lib/src/manager/im_group_manager.dart +++ b/lib/src/manager/im_group_manager.dart @@ -127,15 +127,17 @@ class GroupManager { })) .then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map))); - Future> getJoinedGroupListPage({String? operationID, int offset = 0, int count = 40}) => _channel - .invokeMethod( - 'getJoinedGroupListPage', - _buildParam({ - 'offset': offset, - 'count': count, - 'operationID': Utils.checkOperationID(operationID), - })) - .then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map))); + Future> getJoinedGroupListPage( + {String? operationID, int offset = 0, int count = 40}) => + _channel + .invokeMethod( + 'getJoinedGroupListPage', + _buildParam({ + 'offset': offset, + 'count': count, + 'operationID': Utils.checkOperationID(operationID), + })) + .then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map))); /// Query the list of joined groups Future> getJoinedGroupListMap({String? operationID}) => _channel @@ -214,7 +216,11 @@ class GroupManager { /// Apply to join a group, requiring approval from an administrator or the group. /// [joinSource] 2: Invited, 3: Searched, 4: Using a QR code Future joinGroup( - {required String groupID, String? reason, String? operationID, int joinSource = 3, String? ex}) => + {required String groupID, + String? reason, + String? operationID, + int joinSource = 3, + String? ex}) => _channel.invokeMethod( 'joinGroup', _buildParam({ @@ -599,6 +605,17 @@ class GroupManager { 'operationID': Utils.checkOperationID(operationID), })); + Future getGroupApplicationUnhandledCount(GetGroupApplicationUnhandledCountReq req, + {String? operationID}) => + _channel + .invokeMethod( + 'getGroupApplicationUnhandledCount', + _buildParam({ + 'req': req.toJson(), + 'operationID': Utils.checkOperationID(operationID), + })) + .then((value) => int.parse(value)); + static Map _buildParam(Map param) { param["ManagerName"] = "groupManager"; param = Utils.cleanMap(param); diff --git a/lib/src/openim.dart b/lib/src/openim.dart index 3bfb6e3..82d932d 100644 --- a/lib/src/openim.dart +++ b/lib/src/openim.dart @@ -2,7 +2,7 @@ import 'package:flutter/services.dart'; import 'package:flutter_openim_sdk/flutter_openim_sdk.dart'; class OpenIM { - static const version = '3.8.3+hotfix.10'; + static const version = '3.8.3+hotfix.10.1'; static const _channel = MethodChannel('flutter_openim_sdk'); diff --git a/pubspec.yaml b/pubspec.yaml index a3c171b..b7fd63e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_openim_sdk description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source. -version: 3.8.3+hotfix.10 +version: 3.8.3+hotfix.10.1 homepage: https://www.openim.io repository: https://github.com/openimsdk/open-im-sdk-flutter