This commit is contained in:
hrxiang
2021-07-14 16:19:21 +08:00
parent c15773e28c
commit 9ac48d065a
13 changed files with 232 additions and 77 deletions

View File

@@ -46,7 +46,7 @@ class GroupManager {
'reason': reason,
'uidList': uidList,
}))
.then((value) => _formatJson(value)
.then((value) => (_formatJson(value) as List)
.map((e) => GroupInviteResult.fromJson(e))
.toList());
}
@@ -71,8 +71,8 @@ class GroupManager {
///begin index, pull and fill 0 for the first time
Future<GroupMembersList> getGroupMemberList({
required String groupId,
required int filter,
required int next,
int filter = 0,
int next = 0,
}) {
return _channel
.invokeMethod(
@@ -195,6 +195,22 @@ class GroupManager {
}));
}
void forceSyncApplyGroupRequest() {
_channel.invokeMethod('forceSyncApplyGroupRequest', _buildParam({}));
}
void forceSyncGroupRequest() {
_channel.invokeMethod('forceSyncGroupRequest', _buildParam({}));
}
void forceSyncJoinedGroup() {
_channel.invokeMethod('forceSyncJoinedGroup', _buildParam({}));
}
void forceSyncJoinedGroupMember() {
_channel.invokeMethod('forceSyncJoinedGroupMember', _buildParam({}));
}
static Map _buildParam(Map param) {
param["ManagerName"] = "groupManager";
return param;