Skip to content

Commit 06ad838

Browse files
feat: [CHA-1702] Add options parameter to channel.unban_user for FCB support
Allow passing remove_future_channels_ban option to the channel unban method. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f8fb365 commit 06ad838

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/stream-chat/channel.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ def ban_user(user_id, **options)
323323
end
324324

325325
# Removes the ban for a user on this channel.
326-
sig { params(user_id: String).returns(StreamChat::StreamResponse) }
327-
def unban_user(user_id)
328-
@client.unban_user(user_id, type: @channel_type, id: @id)
326+
sig { params(user_id: String, options: T.untyped).returns(StreamChat::StreamResponse) }
327+
def unban_user(user_id, **options)
328+
@client.unban_user(user_id, type: @channel_type, id: @id, **options)
329329
end
330330

331331
# Removes a channel from query channel requests for that user until a new message is added.

0 commit comments

Comments
 (0)