Skip to content

Commit 8097e0b

Browse files
committed
Fix missing method in test
1 parent dd41b8f commit 8097e0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/slack/web/api/mixins/conversations.id.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ def conversations_id(options = {})
1616
name = options[:channel]
1717
raise ArgumentError, 'Required arguments :channel missing' if name.nil?
1818

19+
limit = respond_to?(:conversations_id_page_size) ? conversations_id_page_size : 100
1920
id_for(
2021
:channel,
2122
name,
2223
'#',
2324
:conversations_list,
2425
:channels,
2526
'channel_not_found',
26-
enum_method_options: { limit: conversations_id_page_size }
27+
enum_method_options: { limit: limit }
2728
)
2829
end
2930
end

0 commit comments

Comments
 (0)