{"action":"created","comment":{"url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/comments/229484582","pull_request_review_id":169998134,"id":229484582,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTQ4NDU4Mg==","diff_hunk":"@@ -557,6 +560,27 @@ class MailboxSceneController(private val scene: MailboxScene,\n             }\n         }\n \n+        fun onResendPeerEvents(resultData: MailboxResult.ResendPeerEvents){\n+            when(resultData){\n+                is MailboxResult.ResendPeerEvents.Success -> {\n+                    if(!resultData.queueIsEmpty){\n+                        val handler = Handler()\n+                        handler.postDelayed({\n+                            dataSource.submitRequest(MailboxRequest.ResendPeerEvents())\n+                        }, TIME_TO_RESEND_EVENTS)\n+                    }\n+                }\n+                is MailboxResult.ResendPeerEvents.Failure -> {\n+                    if(!resultData.queueIsEmpty){\n+                        val handler = Handler()","path":"src/main/kotlin/com/criptext/mail/scenes/mailbox/MailboxSceneController.kt","position":40,"original_position":40,"commit_id":"970744f8cc4b0947dadad5f9d2d03a05b73cb775","original_commit_id":"970744f8cc4b0947dadad5f9d2d03a05b73cb775","user":{"login":"not-gabriel","id":14115856,"node_id":"MDQ6VXNlcjE0MTE1ODU2","avatar_url":"https://avatars0.githubusercontent.com/u/14115856?v=4","gravatar_id":"","url":"https://api.github.com/users/not-gabriel","html_url":"https://github.com/not-gabriel","followers_url":"https://api.github.com/users/not-gabriel/followers","following_url":"https://api.github.com/users/not-gabriel/following{/other_user}","gists_url":"https://api.github.com/users/not-gabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/not-gabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/not-gabriel/subscriptions","organizations_url":"https://api.github.com/users/not-gabriel/orgs","repos_url":"https://api.github.com/users/not-gabriel/repos","events_url":"https://api.github.com/users/not-gabriel/events{/privacy}","received_events_url":"https://api.github.com/users/not-gabriel/received_events","type":"User","site_admin":false},"body":"No Handler in controller","created_at":"2018-10-30T21:01:09Z","updated_at":"2018-10-30T21:01:24Z","html_url":"https://github.com/Criptext/Android-Email-Client/pull/300#discussion_r229484582","pull_request_url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/comments/229484582"},"html":{"href":"https://github.com/Criptext/Android-Email-Client/pull/300#discussion_r229484582"},"pull_request":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300"}}},"pull_request":{"url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300","id":226249829,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MjQ5ODI5","html_url":"https://github.com/Criptext/Android-Email-Client/pull/300","diff_url":"https://github.com/Criptext/Android-Email-Client/pull/300.diff","patch_url":"https://github.com/Criptext/Android-Email-Client/pull/300.patch","issue_url":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/300","number":300,"state":"open","locked":false,"title":"Added queue to handle peer event dispatching.","user":{"login":"jorgeblacio","id":34110092,"node_id":"MDQ6VXNlcjM0MTEwMDky","avatar_url":"https://avatars3.githubusercontent.com/u/34110092?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgeblacio","html_url":"https://github.com/jorgeblacio","followers_url":"https://api.github.com/users/jorgeblacio/followers","following_url":"https://api.github.com/users/jorgeblacio/following{/other_user}","gists_url":"https://api.github.com/users/jorgeblacio/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgeblacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgeblacio/subscriptions","organizations_url":"https://api.github.com/users/jorgeblacio/orgs","repos_url":"https://api.github.com/users/jorgeblacio/repos","events_url":"https://api.github.com/users/jorgeblacio/events{/privacy}","received_events_url":"https://api.github.com/users/jorgeblacio/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-26T23:23:39Z","updated_at":"2018-10-30T21:01:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7663e7a3023c413472ca8b2cf1546213d49b46b5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300/commits","review_comments_url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300/comments","review_comment_url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/300/comments","statuses_url":"https://api.github.com/repos/Criptext/Android-Email-Client/statuses/970744f8cc4b0947dadad5f9d2d03a05b73cb775","head":{"label":"jorgeblacio:peer_event_queue","ref":"peer_event_queue","sha":"970744f8cc4b0947dadad5f9d2d03a05b73cb775","user":{"login":"jorgeblacio","id":34110092,"node_id":"MDQ6VXNlcjM0MTEwMDky","avatar_url":"https://avatars3.githubusercontent.com/u/34110092?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgeblacio","html_url":"https://github.com/jorgeblacio","followers_url":"https://api.github.com/users/jorgeblacio/followers","following_url":"https://api.github.com/users/jorgeblacio/following{/other_user}","gists_url":"https://api.github.com/users/jorgeblacio/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgeblacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgeblacio/subscriptions","organizations_url":"https://api.github.com/users/jorgeblacio/orgs","repos_url":"https://api.github.com/users/jorgeblacio/repos","events_url":"https://api.github.com/users/jorgeblacio/events{/privacy}","received_events_url":"https://api.github.com/users/jorgeblacio/received_events","type":"User","site_admin":false},"repo":{"id":144631609,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ2MzE2MDk=","name":"Android-Email-Client","full_name":"jorgeblacio/Android-Email-Client","private":false,"owner":{"login":"jorgeblacio","id":34110092,"node_id":"MDQ6VXNlcjM0MTEwMDky","avatar_url":"https://avatars3.githubusercontent.com/u/34110092?v=4","gravatar_id":"","url":"https://api.github.com/users/jorgeblacio","html_url":"https://github.com/jorgeblacio","followers_url":"https://api.github.com/users/jorgeblacio/followers","following_url":"https://api.github.com/users/jorgeblacio/following{/other_user}","gists_url":"https://api.github.com/users/jorgeblacio/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgeblacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgeblacio/subscriptions","organizations_url":"https://api.github.com/users/jorgeblacio/orgs","repos_url":"https://api.github.com/users/jorgeblacio/repos","events_url":"https://api.github.com/users/jorgeblacio/events{/privacy}","received_events_url":"https://api.github.com/users/jorgeblacio/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jorgeblacio/Android-Email-Client","description":null,"fork":true,"url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client","forks_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/forks","keys_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/teams","hooks_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/hooks","issue_events_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/issues/events{/number}","events_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/events","assignees_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/assignees{/user}","branches_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/branches{/branch}","tags_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/tags","blobs_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/languages","stargazers_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/stargazers","contributors_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/contributors","subscribers_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/subscribers","subscription_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/subscription","commits_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/contents/{+path}","compare_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/merges","archive_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/downloads","issues_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/issues{/number}","pulls_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/labels{/name}","releases_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/releases{/id}","deployments_url":"https://api.github.com/repos/jorgeblacio/Android-Email-Client/deployments","created_at":"2018-08-13T20:42:01Z","updated_at":"2018-10-30T18:57:25Z","pushed_at":"2018-10-30T20:44:53Z","git_url":"git://github.com/jorgeblacio/Android-Email-Client.git","ssh_url":"git@github.com:jorgeblacio/Android-Email-Client.git","clone_url":"https://github.com/jorgeblacio/Android-Email-Client.git","svn_url":"https://github.com/jorgeblacio/Android-Email-Client","homepage":null,"size":6761,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Criptext:master","ref":"master","sha":"d4a2e945d64b81a5790124a9d41f8aa7eb97a672","user":{"login":"Criptext","id":13144821,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ0ODIx","avatar_url":"https://avatars2.githubusercontent.com/u/13144821?v=4","gravatar_id":"","url":"https://api.github.com/users/Criptext","html_url":"https://github.com/Criptext","followers_url":"https://api.github.com/users/Criptext/followers","following_url":"https://api.github.com/users/Criptext/following{/other_user}","gists_url":"https://api.github.com/users/Criptext/gists{/gist_id}","starred_url":"https://api.github.com/users/Criptext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Criptext/subscriptions","organizations_url":"https://api.github.com/users/Criptext/orgs","repos_url":"https://api.github.com/users/Criptext/repos","events_url":"https://api.github.com/users/Criptext/events{/privacy}","received_events_url":"https://api.github.com/users/Criptext/received_events","type":"Organization","site_admin":false},"repo":{"id":118518189,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg1MTgxODk=","name":"Android-Email-Client","full_name":"Criptext/Android-Email-Client","private":false,"owner":{"login":"Criptext","id":13144821,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMTQ0ODIx","avatar_url":"https://avatars2.githubusercontent.com/u/13144821?v=4","gravatar_id":"","url":"https://api.github.com/users/Criptext","html_url":"https://github.com/Criptext","followers_url":"https://api.github.com/users/Criptext/followers","following_url":"https://api.github.com/users/Criptext/following{/other_user}","gists_url":"https://api.github.com/users/Criptext/gists{/gist_id}","starred_url":"https://api.github.com/users/Criptext/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Criptext/subscriptions","organizations_url":"https://api.github.com/users/Criptext/orgs","repos_url":"https://api.github.com/users/Criptext/repos","events_url":"https://api.github.com/users/Criptext/events{/privacy}","received_events_url":"https://api.github.com/users/Criptext/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Criptext/Android-Email-Client","description":"Criptext for Android","fork":false,"url":"https://api.github.com/repos/Criptext/Android-Email-Client","forks_url":"https://api.github.com/repos/Criptext/Android-Email-Client/forks","keys_url":"https://api.github.com/repos/Criptext/Android-Email-Client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Criptext/Android-Email-Client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Criptext/Android-Email-Client/teams","hooks_url":"https://api.github.com/repos/Criptext/Android-Email-Client/hooks","issue_events_url":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/events{/number}","events_url":"https://api.github.com/repos/Criptext/Android-Email-Client/events","assignees_url":"https://api.github.com/repos/Criptext/Android-Email-Client/assignees{/user}","branches_url":"https://api.github.com/repos/Criptext/Android-Email-Client/branches{/branch}","tags_url":"https://api.github.com/repos/Criptext/Android-Email-Client/tags","blobs_url":"https://api.github.com/repos/Criptext/Android-Email-Client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Criptext/Android-Email-Client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Criptext/Android-Email-Client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Criptext/Android-Email-Client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Criptext/Android-Email-Client/statuses/{sha}","languages_url":"https://api.github.com/repos/Criptext/Android-Email-Client/languages","stargazers_url":"https://api.github.com/repos/Criptext/Android-Email-Client/stargazers","contributors_url":"https://api.github.com/repos/Criptext/Android-Email-Client/contributors","subscribers_url":"https://api.github.com/repos/Criptext/Android-Email-Client/subscribers","subscription_url":"https://api.github.com/repos/Criptext/Android-Email-Client/subscription","commits_url":"https://api.github.com/repos/Criptext/Android-Email-Client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Criptext/Android-Email-Client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Criptext/Android-Email-Client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Criptext/Android-Email-Client/contents/{+path}","compare_url":"https://api.github.com/repos/Criptext/Android-Email-Client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Criptext/Android-Email-Client/merges","archive_url":"https://api.github.com/repos/Criptext/Android-Email-Client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Criptext/Android-Email-Client/downloads","issues_url":"https://api.github.com/repos/Criptext/Android-Email-Client/issues{/number}","pulls_url":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls{/number}","milestones_url":"https://api.github.com/repos/Criptext/Android-Email-Client/milestones{/number}","notifications_url":"https://api.github.com/repos/Criptext/Android-Email-Client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Criptext/Android-Email-Client/labels{/name}","releases_url":"https://api.github.com/repos/Criptext/Android-Email-Client/releases{/id}","deployments_url":"https://api.github.com/repos/Criptext/Android-Email-Client/deployments","created_at":"2018-01-22T21:34:49Z","updated_at":"2018-10-30T18:56:54Z","pushed_at":"2018-10-30T20:44:54Z","git_url":"git://github.com/Criptext/Android-Email-Client.git","ssh_url":"git@github.com:Criptext/Android-Email-Client.git","clone_url":"https://github.com/Criptext/Android-Email-Client.git","svn_url":"https://github.com/Criptext/Android-Email-Client","homepage":"https://criptext.com","size":6693,"stargazers_count":4,"watchers_count":4,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":41,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":3,"open_issues":41,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300"},"html":{"href":"https://github.com/Criptext/Android-Email-Client/pull/300"},"issue":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/300"},"comments":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/Criptext/Android-Email-Client/statuses/970744f8cc4b0947dadad5f9d2d03a05b73cb775"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"not-gabriel"}}