Inviting users to join a group results in an error (#219)
This commit is contained in:
parent
b96401de8a
commit
6cf7b54e24
@ -18,22 +18,20 @@ class GroupManager {
|
|||||||
/// Invite users to a group, allowing them to join without approval.
|
/// Invite users to a group, allowing them to join without approval.
|
||||||
/// [groupID] Group ID
|
/// [groupID] Group ID
|
||||||
/// [userIDList] List of user IDs
|
/// [userIDList] List of user IDs
|
||||||
Future<List<GroupInviteResult>> inviteUserToGroup({
|
Future inviteUserToGroup({
|
||||||
required String groupID,
|
required String groupID,
|
||||||
required List<String> userIDList,
|
required List<String> userIDList,
|
||||||
String? reason,
|
String? reason,
|
||||||
String? operationID,
|
String? operationID,
|
||||||
}) =>
|
}) =>
|
||||||
_channel
|
_channel.invokeMethod(
|
||||||
.invokeMethod(
|
'inviteUserToGroup',
|
||||||
'inviteUserToGroup',
|
_buildParam({
|
||||||
_buildParam({
|
'groupID': groupID,
|
||||||
'groupID': groupID,
|
'userIDList': userIDList,
|
||||||
'userIDList': userIDList,
|
'reason': reason,
|
||||||
'reason': reason,
|
"operationID": Utils.checkOperationID(operationID),
|
||||||
"operationID": Utils.checkOperationID(operationID),
|
}));
|
||||||
}))
|
|
||||||
.then((value) => Utils.toList(value, (map) => GroupInviteResult.fromJson(map)));
|
|
||||||
|
|
||||||
/// Remove group members
|
/// Remove group members
|
||||||
/// [groupID] Group ID
|
/// [groupID] Group ID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user