Skip to content

Commit aa6723c

Browse files
authored
feat: add new device field (#90)
1 parent d592fba commit aa6723c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/stream-chat/client.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,11 +375,12 @@ def channel(channel_type, channel_id: nil, data: nil)
375375
StreamChat::Channel.new(self, channel_type, channel_id, data)
376376
end
377377

378-
sig { params(device_id: String, push_provider: String, user_id: String).returns(StreamChat::StreamResponse) }
379-
def add_device(device_id, push_provider, user_id)
378+
sig { params(device_id: String, push_provider: String, user_id: String, push_provider_name: T.nilable(String)).returns(StreamChat::StreamResponse) }
379+
def add_device(device_id, push_provider, user_id, push_provider_name = nil)
380380
post('devices', data: {
381381
id: device_id,
382382
push_provider: push_provider,
383+
push_provider_name: push_provider_name,
383384
user_id: user_id
384385
})
385386
end

0 commit comments

Comments
 (0)