feat(llc): add hide_history flag in channel.addMembers.

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2022-08-08 15:50:09 +05:30
committed by xsahil03x
parent bd1876c159
commit 19244738ba
5 changed files with 21 additions and 1 deletions
@@ -1151,9 +1151,18 @@ class Channel {
Future<AddMembersResponse> addMembers(
List<String> memberIds, [
Message? message,
// TODO: Convert to optional parameters in v5.0.0
// ignore: avoid_positional_boolean_parameters
bool hideHistory = false,
]) async {
_checkInitialized();
return _client.addChannelMembers(id!, type, memberIds, message: message);
return _client.addChannelMembers(
id!,
type,
memberIds,
message: message,
hideHistory: hideHistory,
);
}
/// Invite members to the channel.
@@ -1044,12 +1044,14 @@ class StreamChatClient {
String channelType,
List<String> memberIds, {
Message? message,
bool hideHistory = false,
}) =>
_chatApi.channel.addMembers(
channelId,
channelType,
memberIds,
message: message,
hideHistory: hideHistory,
);
/// Remove members from the channel