We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac08ed commit e09167fCopy full SHA for e09167f
1 file changed
lib/stream-chat/channel.rb
@@ -101,9 +101,7 @@ def query(**options)
101
# Updates the channel's members attribute with fresh data.
102
sig { returns(StreamChat::StreamResponse) }
103
def refresh_state
104
- url = "channels/#{@channel_type}/#{@id}/query"
105
- state = @client.post(url, data: { state: true })
106
-
+ state = query_members
107
@members = state['members'] if state['members']
108
state
109
end
0 commit comments