{"action":"created","comment":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments/171769980","pull_request_review_id":100682100,"id":171769980,"diff_hunk":"@@ -1759,7 +1759,7 @@ var Gmail_ = function(localJQuery) {\n \n \n     api.helper.get.is_delegated_inbox = function() {\n-        return api.tracker.globals[17][5][0] === \"acfg\";\n+        return $(\".identityUserDelegatedAccount\").length === 1;\n     };","path":"src/gmail.js","position":null,"original_position":6,"commit_id":"30cb37a8ed0ca62a00dedb8cc8bb8b583ae346c4","original_commit_id":"30cb37a8ed0ca62a00dedb8cc8bb8b583ae346c4","user":{"login":"josteink","id":411338,"avatar_url":"https://avatars2.githubusercontent.com/u/411338?v=4","gravatar_id":"","url":"https://api.github.com/users/josteink","html_url":"https://github.com/josteink","followers_url":"https://api.github.com/users/josteink/followers","following_url":"https://api.github.com/users/josteink/following{/other_user}","gists_url":"https://api.github.com/users/josteink/gists{/gist_id}","starred_url":"https://api.github.com/users/josteink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josteink/subscriptions","organizations_url":"https://api.github.com/users/josteink/orgs","repos_url":"https://api.github.com/users/josteink/repos","events_url":"https://api.github.com/users/josteink/events{/privacy}","received_events_url":"https://api.github.com/users/josteink/received_events","type":"User","site_admin":false},"body":"Are we sure this will always be Length one? Are there cases you can see where we may have *more* than one?\r\n\r\nWouldn't it be better/more resilient to change to do a check if it's not zero?","created_at":"2018-03-02T06:00:57Z","updated_at":"2018-03-02T06:00:57Z","html_url":"https://github.com/KartikTalwar/gmail.js/pull/447#discussion_r171769980","pull_request_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments/171769980"},"html":{"href":"https://github.com/KartikTalwar/gmail.js/pull/447#discussion_r171769980"},"pull_request":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447"}}},"pull_request":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447","id":171442827,"html_url":"https://github.com/KartikTalwar/gmail.js/pull/447","diff_url":"https://github.com/KartikTalwar/gmail.js/pull/447.diff","patch_url":"https://github.com/KartikTalwar/gmail.js/pull/447.patch","issue_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/447","number":447,"state":"open","locked":false,"title":"#445 - Fix api.helper.get.is_delegated_inbox check","user":{"login":"remidenele","id":8693949,"avatar_url":"https://avatars1.githubusercontent.com/u/8693949?v=4","gravatar_id":"","url":"https://api.github.com/users/remidenele","html_url":"https://github.com/remidenele","followers_url":"https://api.github.com/users/remidenele/followers","following_url":"https://api.github.com/users/remidenele/following{/other_user}","gists_url":"https://api.github.com/users/remidenele/gists{/gist_id}","starred_url":"https://api.github.com/users/remidenele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remidenele/subscriptions","organizations_url":"https://api.github.com/users/remidenele/orgs","repos_url":"https://api.github.com/users/remidenele/repos","events_url":"https://api.github.com/users/remidenele/events{/privacy}","received_events_url":"https://api.github.com/users/remidenele/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-26T17:36:42Z","updated_at":"2018-03-02T06:00:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de55b92ab11ed8dc4b473d8089c4810a24e31b16","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447/commits","review_comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447/comments","review_comment_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/447/comments","statuses_url":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/30cb37a8ed0ca62a00dedb8cc8bb8b583ae346c4","head":{"label":"remidenele:fix-is_delegated_inbox-check","ref":"fix-is_delegated_inbox-check","sha":"30cb37a8ed0ca62a00dedb8cc8bb8b583ae346c4","user":{"login":"remidenele","id":8693949,"avatar_url":"https://avatars1.githubusercontent.com/u/8693949?v=4","gravatar_id":"","url":"https://api.github.com/users/remidenele","html_url":"https://github.com/remidenele","followers_url":"https://api.github.com/users/remidenele/followers","following_url":"https://api.github.com/users/remidenele/following{/other_user}","gists_url":"https://api.github.com/users/remidenele/gists{/gist_id}","starred_url":"https://api.github.com/users/remidenele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remidenele/subscriptions","organizations_url":"https://api.github.com/users/remidenele/orgs","repos_url":"https://api.github.com/users/remidenele/repos","events_url":"https://api.github.com/users/remidenele/events{/privacy}","received_events_url":"https://api.github.com/users/remidenele/received_events","type":"User","site_admin":false},"repo":{"id":122999667,"name":"gmail.js","full_name":"remidenele/gmail.js","owner":{"login":"remidenele","id":8693949,"avatar_url":"https://avatars1.githubusercontent.com/u/8693949?v=4","gravatar_id":"","url":"https://api.github.com/users/remidenele","html_url":"https://github.com/remidenele","followers_url":"https://api.github.com/users/remidenele/followers","following_url":"https://api.github.com/users/remidenele/following{/other_user}","gists_url":"https://api.github.com/users/remidenele/gists{/gist_id}","starred_url":"https://api.github.com/users/remidenele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remidenele/subscriptions","organizations_url":"https://api.github.com/users/remidenele/orgs","repos_url":"https://api.github.com/users/remidenele/repos","events_url":"https://api.github.com/users/remidenele/events{/privacy}","received_events_url":"https://api.github.com/users/remidenele/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/remidenele/gmail.js","description":"Gmail JavaScript API","fork":true,"url":"https://api.github.com/repos/remidenele/gmail.js","forks_url":"https://api.github.com/repos/remidenele/gmail.js/forks","keys_url":"https://api.github.com/repos/remidenele/gmail.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/remidenele/gmail.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/remidenele/gmail.js/teams","hooks_url":"https://api.github.com/repos/remidenele/gmail.js/hooks","issue_events_url":"https://api.github.com/repos/remidenele/gmail.js/issues/events{/number}","events_url":"https://api.github.com/repos/remidenele/gmail.js/events","assignees_url":"https://api.github.com/repos/remidenele/gmail.js/assignees{/user}","branches_url":"https://api.github.com/repos/remidenele/gmail.js/branches{/branch}","tags_url":"https://api.github.com/repos/remidenele/gmail.js/tags","blobs_url":"https://api.github.com/repos/remidenele/gmail.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/remidenele/gmail.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/remidenele/gmail.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/remidenele/gmail.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/remidenele/gmail.js/statuses/{sha}","languages_url":"https://api.github.com/repos/remidenele/gmail.js/languages","stargazers_url":"https://api.github.com/repos/remidenele/gmail.js/stargazers","contributors_url":"https://api.github.com/repos/remidenele/gmail.js/contributors","subscribers_url":"https://api.github.com/repos/remidenele/gmail.js/subscribers","subscription_url":"https://api.github.com/repos/remidenele/gmail.js/subscription","commits_url":"https://api.github.com/repos/remidenele/gmail.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/remidenele/gmail.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/remidenele/gmail.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/remidenele/gmail.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/remidenele/gmail.js/contents/{+path}","compare_url":"https://api.github.com/repos/remidenele/gmail.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/remidenele/gmail.js/merges","archive_url":"https://api.github.com/repos/remidenele/gmail.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/remidenele/gmail.js/downloads","issues_url":"https://api.github.com/repos/remidenele/gmail.js/issues{/number}","pulls_url":"https://api.github.com/repos/remidenele/gmail.js/pulls{/number}","milestones_url":"https://api.github.com/repos/remidenele/gmail.js/milestones{/number}","notifications_url":"https://api.github.com/repos/remidenele/gmail.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/remidenele/gmail.js/labels{/name}","releases_url":"https://api.github.com/repos/remidenele/gmail.js/releases{/id}","deployments_url":"https://api.github.com/repos/remidenele/gmail.js/deployments","created_at":"2018-02-26T16:51:47Z","updated_at":"2018-02-26T16:51:49Z","pushed_at":"2018-03-01T18:10:07Z","git_url":"git://github.com/remidenele/gmail.js.git","ssh_url":"git@github.com:remidenele/gmail.js.git","clone_url":"https://github.com/remidenele/gmail.js.git","svn_url":"https://github.com/remidenele/gmail.js","homepage":"","size":1150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KartikTalwar:master","ref":"master","sha":"6d0c33b0a147f2b7f147303903cf82bde247b917","user":{"login":"KartikTalwar","id":461702,"avatar_url":"https://avatars3.githubusercontent.com/u/461702?v=4","gravatar_id":"","url":"https://api.github.com/users/KartikTalwar","html_url":"https://github.com/KartikTalwar","followers_url":"https://api.github.com/users/KartikTalwar/followers","following_url":"https://api.github.com/users/KartikTalwar/following{/other_user}","gists_url":"https://api.github.com/users/KartikTalwar/gists{/gist_id}","starred_url":"https://api.github.com/users/KartikTalwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KartikTalwar/subscriptions","organizations_url":"https://api.github.com/users/KartikTalwar/orgs","repos_url":"https://api.github.com/users/KartikTalwar/repos","events_url":"https://api.github.com/users/KartikTalwar/events{/privacy}","received_events_url":"https://api.github.com/users/KartikTalwar/received_events","type":"User","site_admin":false},"repo":{"id":12909475,"name":"gmail.js","full_name":"KartikTalwar/gmail.js","owner":{"login":"KartikTalwar","id":461702,"avatar_url":"https://avatars3.githubusercontent.com/u/461702?v=4","gravatar_id":"","url":"https://api.github.com/users/KartikTalwar","html_url":"https://github.com/KartikTalwar","followers_url":"https://api.github.com/users/KartikTalwar/followers","following_url":"https://api.github.com/users/KartikTalwar/following{/other_user}","gists_url":"https://api.github.com/users/KartikTalwar/gists{/gist_id}","starred_url":"https://api.github.com/users/KartikTalwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KartikTalwar/subscriptions","organizations_url":"https://api.github.com/users/KartikTalwar/orgs","repos_url":"https://api.github.com/users/KartikTalwar/repos","events_url":"https://api.github.com/users/KartikTalwar/events{/privacy}","received_events_url":"https://api.github.com/users/KartikTalwar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KartikTalwar/gmail.js","description":"Gmail JavaScript API","fork":false,"url":"https://api.github.com/repos/KartikTalwar/gmail.js","forks_url":"https://api.github.com/repos/KartikTalwar/gmail.js/forks","keys_url":"https://api.github.com/repos/KartikTalwar/gmail.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KartikTalwar/gmail.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KartikTalwar/gmail.js/teams","hooks_url":"https://api.github.com/repos/KartikTalwar/gmail.js/hooks","issue_events_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/events{/number}","events_url":"https://api.github.com/repos/KartikTalwar/gmail.js/events","assignees_url":"https://api.github.com/repos/KartikTalwar/gmail.js/assignees{/user}","branches_url":"https://api.github.com/repos/KartikTalwar/gmail.js/branches{/branch}","tags_url":"https://api.github.com/repos/KartikTalwar/gmail.js/tags","blobs_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/{sha}","languages_url":"https://api.github.com/repos/KartikTalwar/gmail.js/languages","stargazers_url":"https://api.github.com/repos/KartikTalwar/gmail.js/stargazers","contributors_url":"https://api.github.com/repos/KartikTalwar/gmail.js/contributors","subscribers_url":"https://api.github.com/repos/KartikTalwar/gmail.js/subscribers","subscription_url":"https://api.github.com/repos/KartikTalwar/gmail.js/subscription","commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/KartikTalwar/gmail.js/contents/{+path}","compare_url":"https://api.github.com/repos/KartikTalwar/gmail.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KartikTalwar/gmail.js/merges","archive_url":"https://api.github.com/repos/KartikTalwar/gmail.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KartikTalwar/gmail.js/downloads","issues_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues{/number}","pulls_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls{/number}","milestones_url":"https://api.github.com/repos/KartikTalwar/gmail.js/milestones{/number}","notifications_url":"https://api.github.com/repos/KartikTalwar/gmail.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KartikTalwar/gmail.js/labels{/name}","releases_url":"https://api.github.com/repos/KartikTalwar/gmail.js/releases{/id}","deployments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/deployments","created_at":"2013-09-17T23:34:55Z","updated_at":"2018-03-02T01:05:52Z","pushed_at":"2018-03-01T18:10:08Z","git_url":"git://github.com/KartikTalwar/gmail.js.git","ssh_url":"git@github.com:KartikTalwar/gmail.js.git","clone_url":"https://github.com/KartikTalwar/gmail.js.git","svn_url":"https://github.com/KartikTalwar/gmail.js","homepage":"","size":1134,"stargazers_count":3065,"watchers_count":3065,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":331,"mirror_url":null,"archived":false,"open_issues_count":20,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":331,"open_issues":20,"watchers":3065,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447"},"html":{"href":"https://github.com/KartikTalwar/gmail.js/pull/447"},"issue":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/447"},"comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/447/comments"},"review_comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447/comments"},"review_comment":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/447/commits"},"statuses":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/30cb37a8ed0ca62a00dedb8cc8bb8b583ae346c4"}},"author_association":"NONE"}}
{"actor":{"display_login":"josteink"}}