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
@@ -376,6 +376,7 @@ void main() {
const memberIds = ['test-member-id-1', 'test-member-id-2'];
final channelModel = ChannelModel(id: channelId, type: channelType);
final message = Message(id: 'test-message-id', text: 'members-added');
const hideHistory = true;
final path = _getChannelUrl(channelId, channelType);
@@ -384,6 +385,7 @@ void main() {
data: {
'add_members': memberIds,
'message': message,
'hide_history': hideHistory,
},
)).thenAnswer((_) async => successResponse(path, data: {
'channel': channelModel.toJson(),
@@ -395,6 +397,7 @@ void main() {
channelType,
memberIds,
message: message,
hideHistory: hideHistory,
);
expect(res, isNotNull);