pusher / pusher-js

Pusher Javascript library
http://pusher.com
MIT License
2.11k stars 374 forks source link

How can I get unread message count in this api? #357

Closed Mixelated closed 5 years ago

Mixelated commented 5 years ago

I am looking to get the list of rooms with the unread count. it exists on the API since v6. Can I reach this endpoint with this api?

Event: Initial state 'Sent as soon as a client subscribes to the user subscription endpoint. The event data contains a list of rooms the user is a member of.'

it is a list of rooms with the unread count. I am pusher-js and pusher-client (VueJS).

Mixelated commented 5 years ago

solved by updating the JS client to 1.2, unread message count can be found as a room property (which can be found on the user object when connecting to chatkit)

leesio commented 5 years ago

@Mixelated I'm glad you resolved your issue. I assume you were looking for the chatkit js client? For future reference, that can be found here