{"action":"closed","issue":{"url":"https://api.github.com/repos/zarino/backchat/issues/4","labels_url":"https://api.github.com/repos/zarino/backchat/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/zarino/backchat/issues/4/comments","events_url":"https://api.github.com/repos/zarino/backchat/issues/4/events","html_url":"https://github.com/zarino/backchat/issues/4","id":72846876,"number":4,"title":"Show unread counts in sidebar when background channels receive messages","user":{"login":"zarino","id":739624,"avatar_url":"https://avatars.githubusercontent.com/u/739624?v=3","gravatar_id":"","url":"https://api.github.com/users/zarino","html_url":"https://github.com/zarino","followers_url":"https://api.github.com/users/zarino/followers","following_url":"https://api.github.com/users/zarino/following{/other_user}","gists_url":"https://api.github.com/users/zarino/gists{/gist_id}","starred_url":"https://api.github.com/users/zarino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarino/subscriptions","organizations_url":"https://api.github.com/users/zarino/orgs","repos_url":"https://api.github.com/users/zarino/repos","events_url":"https://api.github.com/users/zarino/events{/privacy}","received_events_url":"https://api.github.com/users/zarino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-03T18:44:13Z","updated_at":"2015-07-08T07:34:33Z","closed_at":"2015-07-08T07:34:33Z","body":"There are two cases when a message should be classed as \"unread\" and therefore added to an \"unread count\" next to the channel name in the sidebar:\r\n\r\n1. When the target channel is hidden (ie: not the currently focussed channel)\r\n2. Or when the window is blurred (ie: not the foremost window)\r\n\r\nFocussing a channel with missed messages (ie: by switching to it in the sidebar or, if the channel is current visible but the window is blurred, just switching to the window) should remove the unread count."}}