This commit is contained in:
parent
afb98bf399
commit
0a175bb8b1
@ -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
|
## 3.8.3+hotfix.10
|
||||||
|
|
||||||
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.3-patch.10)
|
- [Bug fixes and performance enhancements.](https://github.com/openimsdk/openim-sdk-core/releases/tag/v3.8.3-patch.10)
|
||||||
|
|||||||
@ -299,6 +299,17 @@ class FriendshipManager {
|
|||||||
.then((value) => value);
|
.then((value) => value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Future<int> 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<String, dynamic> param) {
|
static Map _buildParam(Map<String, dynamic> param) {
|
||||||
param["ManagerName"] = "friendshipManager";
|
param["ManagerName"] = "friendshipManager";
|
||||||
param = Utils.cleanMap(param);
|
param = Utils.cleanMap(param);
|
||||||
|
|||||||
@ -127,15 +127,17 @@ class GroupManager {
|
|||||||
}))
|
}))
|
||||||
.then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map)));
|
.then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map)));
|
||||||
|
|
||||||
Future<List<GroupInfo>> getJoinedGroupListPage({String? operationID, int offset = 0, int count = 40}) => _channel
|
Future<List<GroupInfo>> getJoinedGroupListPage(
|
||||||
.invokeMethod(
|
{String? operationID, int offset = 0, int count = 40}) =>
|
||||||
'getJoinedGroupListPage',
|
_channel
|
||||||
_buildParam({
|
.invokeMethod(
|
||||||
'offset': offset,
|
'getJoinedGroupListPage',
|
||||||
'count': count,
|
_buildParam({
|
||||||
'operationID': Utils.checkOperationID(operationID),
|
'offset': offset,
|
||||||
}))
|
'count': count,
|
||||||
.then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map)));
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
|
}))
|
||||||
|
.then((value) => Utils.toList(value, (map) => GroupInfo.fromJson(map)));
|
||||||
|
|
||||||
/// Query the list of joined groups
|
/// Query the list of joined groups
|
||||||
Future<List<dynamic>> getJoinedGroupListMap({String? operationID}) => _channel
|
Future<List<dynamic>> getJoinedGroupListMap({String? operationID}) => _channel
|
||||||
@ -214,7 +216,11 @@ class GroupManager {
|
|||||||
/// Apply to join a group, requiring approval from an administrator or the group.
|
/// Apply to join a group, requiring approval from an administrator or the group.
|
||||||
/// [joinSource] 2: Invited, 3: Searched, 4: Using a QR code
|
/// [joinSource] 2: Invited, 3: Searched, 4: Using a QR code
|
||||||
Future<dynamic> joinGroup(
|
Future<dynamic> 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(
|
_channel.invokeMethod(
|
||||||
'joinGroup',
|
'joinGroup',
|
||||||
_buildParam({
|
_buildParam({
|
||||||
@ -599,6 +605,17 @@ class GroupManager {
|
|||||||
'operationID': Utils.checkOperationID(operationID),
|
'operationID': Utils.checkOperationID(operationID),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
Future<int> 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<String, dynamic> param) {
|
static Map _buildParam(Map<String, dynamic> param) {
|
||||||
param["ManagerName"] = "groupManager";
|
param["ManagerName"] = "groupManager";
|
||||||
param = Utils.cleanMap(param);
|
param = Utils.cleanMap(param);
|
||||||
|
|||||||
@ -2,7 +2,7 @@ import 'package:flutter/services.dart';
|
|||||||
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
import 'package:flutter_openim_sdk/flutter_openim_sdk.dart';
|
||||||
|
|
||||||
class OpenIM {
|
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');
|
static const _channel = MethodChannel('flutter_openim_sdk');
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
name: flutter_openim_sdk
|
name: flutter_openim_sdk
|
||||||
description: An instant messaging plug-in that supports Android and IOS. And the server is also all open source.
|
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
|
homepage: https://www.openim.io
|
||||||
repository: https://github.com/openimsdk/open-im-sdk-flutter
|
repository: https://github.com/openimsdk/open-im-sdk-flutter
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user