{"action":"created","issue":{"url":"https://api.github.com/repos/status-im/status-react/issues/4690","repository_url":"https://api.github.com/repos/status-im/status-react","labels_url":"https://api.github.com/repos/status-im/status-react/issues/4690/labels{/name}","comments_url":"https://api.github.com/repos/status-im/status-react/issues/4690/comments","events_url":"https://api.github.com/repos/status-im/status-react/issues/4690/events","html_url":"https://github.com/status-im/status-react/issues/4690","id":330643241,"node_id":"MDU6SXNzdWUzMzA2NDMyNDE=","number":4690,"title":"Chat badges","user":{"login":"andmironov","id":3115606,"node_id":"MDQ6VXNlcjMxMTU2MDY=","avatar_url":"https://avatars1.githubusercontent.com/u/3115606?v=4","gravatar_id":"","url":"https://api.github.com/users/andmironov","html_url":"https://github.com/andmironov","followers_url":"https://api.github.com/users/andmironov/followers","following_url":"https://api.github.com/users/andmironov/following{/other_user}","gists_url":"https://api.github.com/users/andmironov/gists{/gist_id}","starred_url":"https://api.github.com/users/andmironov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andmironov/subscriptions","organizations_url":"https://api.github.com/users/andmironov/orgs","repos_url":"https://api.github.com/users/andmironov/repos","events_url":"https://api.github.com/users/andmironov/events{/privacy}","received_events_url":"https://api.github.com/users/andmironov/received_events","type":"User","site_admin":false},"labels":[{"id":795655580,"node_id":"MDU6TGFiZWw3OTU2NTU1ODA=","url":"https://api.github.com/repos/status-im/status-react/labels/chat","name":"chat","color":"f70cb0","default":false},{"id":458736310,"node_id":"MDU6TGFiZWw0NTg3MzYzMTA=","url":"https://api.github.com/repos/status-im/status-react/labels/design","name":"design","color":"6599ec","default":false},{"id":888219195,"node_id":"MDU6TGFiZWw4ODgyMTkxOTU=","url":"https://api.github.com/repos/status-im/status-react/labels/group-chat","name":"group-chat","color":"ffb90a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T12:42:55Z","updated_at":"2018-06-13T18:49:40Z","closed_at":null,"author_association":"MEMBER","body":"[comment]: # (Please replace ... with your information. Remove < and >)\r\n\r\n### User Story\r\n\r\nAs a user, I want to see these badges:\r\n- Errors (Offline)\r\n- Add to Contacts\r\n- Unread messages above the screen\r\n\r\n### Description\r\n\r\n[comment]: # (Feature or Bug? i.e Type: Bug)\r\n*Type*: Feature\r\n\r\n*Summary*: \r\n\r\n**Unread messages**\r\nThe `N Unread messages` badge is shown if user opens a chat, and there are a lot of unread messages and they do not fit in the screen. We show this badge with a counter which basically means “scroll to the beginning of unread messages”\r\n\r\nTap on Close icon (X) in `N Unread messages` badge :  \r\n- mark all unread messages as read.\r\n- unread messages badge disappears\r\n\r\nTap on `N Unread messages` : \r\n- scroll to the beginning of unread messages \r\n- marks all unread messages as read\r\n- unread messages badge disappears\r\n\r\n\r\n**Add to contacts**\r\nWe show it if the user has a chat with somebody who is not in their contacts. \r\n\r\nTap on `Add to contacts` :\r\n- Badge disappears\r\n- User added to contacts\r\n\r\nTap on Close icon (X) in `Add to contacts`:\r\n- Badge disappears\r\n\r\n\r\n**Offline. Trying to reconnect**\r\nShown when there's a network error\r\n\r\n#### Expected behavior\r\nOnly one badge is visible at a time. Priority:\r\n1. Erros\r\n2. Unread messages\r\n3. Add to contacts\r\n\r\n![badges](https://user-images.githubusercontent.com/3115606/41168361-64cebaf0-6b4e-11e8-8eec-f25f5d7c728b.png)\r\n\r\n\r\nZeplin:\r\nzpl.io/aN0ZKWQ\r\nzpl://screen?sid=5b1a79ae98f9b848590fb930&pid=5a55d587ba304eed4d2c942f\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/status-im/status-react/issues/comments/397046043","html_url":"https://github.com/status-im/status-react/issues/4690#issuecomment-397046043","issue_url":"https://api.github.com/repos/status-im/status-react/issues/4690","id":397046043,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzA0NjA0Mw==","user":{"login":"EugeOrtiz","id":37297779,"node_id":"MDQ6VXNlcjM3Mjk3Nzc5","avatar_url":"https://avatars3.githubusercontent.com/u/37297779?v=4","gravatar_id":"","url":"https://api.github.com/users/EugeOrtiz","html_url":"https://github.com/EugeOrtiz","followers_url":"https://api.github.com/users/EugeOrtiz/followers","following_url":"https://api.github.com/users/EugeOrtiz/following{/other_user}","gists_url":"https://api.github.com/users/EugeOrtiz/gists{/gist_id}","starred_url":"https://api.github.com/users/EugeOrtiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EugeOrtiz/subscriptions","organizations_url":"https://api.github.com/users/EugeOrtiz/orgs","repos_url":"https://api.github.com/users/EugeOrtiz/repos","events_url":"https://api.github.com/users/EugeOrtiz/events{/privacy}","received_events_url":"https://api.github.com/users/EugeOrtiz/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T18:49:40Z","updated_at":"2018-06-13T18:49:40Z","author_association":"NONE","body":"Just a question on the \"Offline. Trying to reconnect\": is it effectively like that? The app tries to reconnect? How many attempts? What do we show after those attempts?"}}
{"actor":{"display_login":"EugeOrtiz"}}