Skip to content

Commit f8fb365

Browse files
feat: [CHA-1699] add Future Channel Bans support
- Add query_future_channel_bans method - ban_user/unban_user already support options for new parameters
1 parent 92c9856 commit f8fb365

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/stream-chat/client.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,15 @@ def query_banned_users(filter_conditions, sort: nil, **options)
485485
get('query_banned_users', params: { payload: params.to_json })
486486
end
487487

488+
# Queries future channel bans.
489+
#
490+
# Future channel bans are automatically applied when a user creates a new channel
491+
# or adds a member to an existing channel.
492+
sig { params(options: T.untyped).returns(StreamChat::StreamResponse) }
493+
def query_future_channel_bans(**options)
494+
get('query_future_channel_bans', params: { payload: options.to_json })
495+
end
496+
488497
# Allows you to search for users and see if they are online/offline.
489498
# You can filter and sort on the custom fields you've set for your user, the user id, and when the user was last active.
490499
sig { params(filter_conditions: StringKeyHash, sort: T.nilable(T::Hash[String, Integer]), options: T.untyped).returns(StreamChat::StreamResponse) }

0 commit comments

Comments
 (0)