Skip to content

Commit 5253d09

Browse files
authored
Ad new flags into export channels (#61)
1 parent c8d7116 commit 5253d09

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/stream-chat/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,8 @@ def delete_blocklist(name)
322322
delete("blocklists/#{name}")
323323
end
324324

325-
def export_channels(*channels)
326-
post('export_channels', data: { channels: channels })
325+
def export_channels(*channels, **options)
326+
post('export_channels', data: { channels: channels, **options })
327327
end
328328

329329
def get_export_channel_status(task_id)

spec/client_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,8 @@
466466
ch.create(@random_user[:id])
467467
ch.send_message({ text: 'Hey Joni' }, @random_user[:id])
468468

469-
resp = @client.export_channels({ type: ch.channel_type, id: ch.id })
469+
options = { clear_deleted_message_text: true, include_truncated_messages: true }
470+
resp = @client.export_channels({ type: ch.channel_type, id: ch.id }, **options)
470471
expect(resp['task_id']).not_to be_empty
471472

472473
task_id = resp['task_id']

0 commit comments

Comments
 (0)