{"action":"created","issue":{"url":"https://api.github.com/repos/status-im/status-react/issues/4220","repository_url":"https://api.github.com/repos/status-im/status-react","labels_url":"https://api.github.com/repos/status-im/status-react/issues/4220/labels{/name}","comments_url":"https://api.github.com/repos/status-im/status-react/issues/4220/comments","events_url":"https://api.github.com/repos/status-im/status-react/issues/4220/events","html_url":"https://github.com/status-im/status-react/pull/4220","id":322268921,"number":4220,"title":"Handle mailserver connection error","user":{"login":"dmitryn","id":23836,"avatar_url":"https://avatars2.githubusercontent.com/u/23836?v=4","gravatar_id":"","url":"https://api.github.com/users/dmitryn","html_url":"https://github.com/dmitryn","followers_url":"https://api.github.com/users/dmitryn/followers","following_url":"https://api.github.com/users/dmitryn/following{/other_user}","gists_url":"https://api.github.com/users/dmitryn/gists{/gist_id}","starred_url":"https://api.github.com/users/dmitryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmitryn/subscriptions","organizations_url":"https://api.github.com/users/dmitryn/orgs","repos_url":"https://api.github.com/users/dmitryn/repos","events_url":"https://api.github.com/users/dmitryn/events{/privacy}","received_events_url":"https://api.github.com/users/dmitryn/received_events","type":"User","site_admin":false},"labels":[{"id":925070000,"url":"https://api.github.com/repos/status-im/status-react/labels/099-confidence","name":"099-confidence","color":"8c57cc","default":false},{"id":795655580,"url":"https://api.github.com/repos/status-im/status-react/labels/chat","name":"chat","color":"f70cb0","default":false}],"state":"open","locked":false,"assignee":{"login":"Serhy","id":8749671,"avatar_url":"https://avatars2.githubusercontent.com/u/8749671?v=4","gravatar_id":"","url":"https://api.github.com/users/Serhy","html_url":"https://github.com/Serhy","followers_url":"https://api.github.com/users/Serhy/followers","following_url":"https://api.github.com/users/Serhy/following{/other_user}","gists_url":"https://api.github.com/users/Serhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Serhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serhy/subscriptions","organizations_url":"https://api.github.com/users/Serhy/orgs","repos_url":"https://api.github.com/users/Serhy/repos","events_url":"https://api.github.com/users/Serhy/events{/privacy}","received_events_url":"https://api.github.com/users/Serhy/received_events","type":"User","site_admin":false},"assignees":[{"login":"Serhy","id":8749671,"avatar_url":"https://avatars2.githubusercontent.com/u/8749671?v=4","gravatar_id":"","url":"https://api.github.com/users/Serhy","html_url":"https://github.com/Serhy","followers_url":"https://api.github.com/users/Serhy/followers","following_url":"https://api.github.com/users/Serhy/following{/other_user}","gists_url":"https://api.github.com/users/Serhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Serhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serhy/subscriptions","organizations_url":"https://api.github.com/users/Serhy/orgs","repos_url":"https://api.github.com/users/Serhy/repos","events_url":"https://api.github.com/users/Serhy/events{/privacy}","received_events_url":"https://api.github.com/users/Serhy/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-05-11T11:50:13Z","updated_at":"2018-05-14T09:12:13Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/status-im/status-react/pulls/4220","html_url":"https://github.com/status-im/status-react/pull/4220","diff_url":"https://github.com/status-im/status-react/pull/4220.diff","patch_url":"https://github.com/status-im/status-react/pull/4220.patch"},"body":"fixes #3787 \r\n\r\n### Summary:\r\n\r\n* Do not try to reconnect to mailserver when app is offline\r\n* If app is online, but mailserver is disconnected, show notification to the user\r\n* Tap on notification starts reconnecting process\r\n\r\n### Testing notes (optional):\r\nYou could probably emulate mailserver disconnect by blocking IP 51.15.35.110 (for mainnet)\r\n\r\n### Steps to test:\r\n- Open Status\r\n- Emulate mailserver disconnect\r\n- Wait for couple of minutes for notification to appear (stay on Home screen or inside any chat)\r\n- Tap on it to reconnect\r\n\r\nstatus: ready\r\n"},"comment":{"url":"https://api.github.com/repos/status-im/status-react/issues/comments/388749835","html_url":"https://github.com/status-im/status-react/pull/4220#issuecomment-388749835","issue_url":"https://api.github.com/repos/status-im/status-react/issues/4220","id":388749835,"user":{"login":"Serhy","id":8749671,"avatar_url":"https://avatars2.githubusercontent.com/u/8749671?v=4","gravatar_id":"","url":"https://api.github.com/users/Serhy","html_url":"https://github.com/Serhy","followers_url":"https://api.github.com/users/Serhy/followers","following_url":"https://api.github.com/users/Serhy/following{/other_user}","gists_url":"https://api.github.com/users/Serhy/gists{/gist_id}","starred_url":"https://api.github.com/users/Serhy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Serhy/subscriptions","organizations_url":"https://api.github.com/users/Serhy/orgs","repos_url":"https://api.github.com/users/Serhy/repos","events_url":"https://api.github.com/users/Serhy/events{/privacy}","received_events_url":"https://api.github.com/users/Serhy/received_events","type":"User","site_admin":false},"created_at":"2018-05-14T09:12:13Z","updated_at":"2018-05-14T09:12:13Z","author_association":"MEMBER","body":"Builds https://i.diawi.com/PT4RJQ (iOS) and https://i.diawi.com/zgYaoD (Android) tested.\r\nConfirmed as works great: `Could not connect to mailserver. Tap to reconnect` is shown on Home or chat screen when fails to connect to mailserver. \r\nTap upon the label tries to reconnect. And once the connection established - offline inbox messages received. Messages that were failed to be sent - send and delivered by recipients fine.\r\nNo errors in logs!\r\n\r\n"}}
{"actor":{"display_login":"Serhy"}}