{"action":"created","issue":{"url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/67","repository_url":"https://api.github.com/repos/pusher/chatkit-client-js","labels_url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/67/comments","events_url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/67/events","html_url":"https://github.com/pusher/chatkit-client-js/issues/67","id":313981600,"number":67,"title":"Unread messages count of all my rooms","user":{"login":"eveevans","id":109561,"avatar_url":"https://avatars0.githubusercontent.com/u/109561?v=4","gravatar_id":"","url":"https://api.github.com/users/eveevans","html_url":"https://github.com/eveevans","followers_url":"https://api.github.com/users/eveevans/followers","following_url":"https://api.github.com/users/eveevans/following{/other_user}","gists_url":"https://api.github.com/users/eveevans/gists{/gist_id}","starred_url":"https://api.github.com/users/eveevans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eveevans/subscriptions","organizations_url":"https://api.github.com/users/eveevans/orgs","repos_url":"https://api.github.com/users/eveevans/repos","events_url":"https://api.github.com/users/eveevans/events{/privacy}","received_events_url":"https://api.github.com/users/eveevans/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-13T06:17:57Z","updated_at":"2018-04-24T09:31:55Z","closed_at":null,"author_association":"NONE","body":"Is there a way to receive a count of all the unread messages or at least the amount of rooms with unread messages from all the current  User 's rooms ?\r\n\r\nI know that you can access to the last cursor of each room. But some times this is very inefficient. \r\n\r\nExample: Imagine Facebook Message icon showing the amount of new messages, but it requests all the rooms (and their last messages) only when you click and open the menu) "},"comment":{"url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/comments/383867296","html_url":"https://github.com/pusher/chatkit-client-js/issues/67#issuecomment-383867296","issue_url":"https://api.github.com/repos/pusher/chatkit-client-js/issues/67","id":383867296,"user":{"login":"gianpaj","id":899175,"avatar_url":"https://avatars3.githubusercontent.com/u/899175?v=4","gravatar_id":"","url":"https://api.github.com/users/gianpaj","html_url":"https://github.com/gianpaj","followers_url":"https://api.github.com/users/gianpaj/followers","following_url":"https://api.github.com/users/gianpaj/following{/other_user}","gists_url":"https://api.github.com/users/gianpaj/gists{/gist_id}","starred_url":"https://api.github.com/users/gianpaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gianpaj/subscriptions","organizations_url":"https://api.github.com/users/gianpaj/orgs","repos_url":"https://api.github.com/users/gianpaj/repos","events_url":"https://api.github.com/users/gianpaj/events{/privacy}","received_events_url":"https://api.github.com/users/gianpaj/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T09:31:55Z","updated_at":"2018-04-24T09:31:55Z","author_association":"NONE","body":"+1 on having one hook or a non-subscription-based function to get the number of unread messages"}}
{"actor":{"display_login":"gianpaj"}}