{"action":"created","comment":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments/23493971","id":23493971,"diff_hunk":"@@ -1559,7 +1559,8 @@ var Gmail = function(localJQuery) {\n     for(i in email_data) {\n       var x = email_data[i];\n       if(x[0] == 'cs') {\n-        data.first_email = x[1];\n+        data.thread_id = x[1];\n+\tdata.first_email= x[8][0];","path":"src/gmail.js","position":null,"original_position":6,"commit_id":"578c910261b31f4eecb48dfc999a0fb21d656560","original_commit_id":"4c55e3893d96893c4ad4538e1db74e8c25efa0d5","user":{"login":"madhugb","id":538540,"avatar_url":"https://avatars.githubusercontent.com/u/538540?v=3","gravatar_id":"","url":"https://api.github.com/users/madhugb","html_url":"https://github.com/madhugb","followers_url":"https://api.github.com/users/madhugb/followers","following_url":"https://api.github.com/users/madhugb/following{/other_user}","gists_url":"https://api.github.com/users/madhugb/gists{/gist_id}","starred_url":"https://api.github.com/users/madhugb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhugb/subscriptions","organizations_url":"https://api.github.com/users/madhugb/orgs","repos_url":"https://api.github.com/users/madhugb/repos","events_url":"https://api.github.com/users/madhugb/events{/privacy}","received_events_url":"https://api.github.com/users/madhugb/received_events","type":"User","site_admin":false},"body":"Sure, updated !","created_at":"2015-01-24T04:36:54Z","updated_at":"2015-01-24T04:36:54Z","html_url":"https://github.com/KartikTalwar/gmail.js/pull/139#discussion_r23493971","pull_request_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/comments/23493971"},"html":{"href":"https://github.com/KartikTalwar/gmail.js/pull/139#discussion_r23493971"},"pull_request":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139","id":27823538,"html_url":"https://github.com/KartikTalwar/gmail.js/pull/139","diff_url":"https://github.com/KartikTalwar/gmail.js/pull/139.diff","patch_url":"https://github.com/KartikTalwar/gmail.js/pull/139.patch","issue_url":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/139","number":139,"state":"open","locked":false,"title":"Add thread_id in email_data","user":{"login":"madhugb","id":538540,"avatar_url":"https://avatars.githubusercontent.com/u/538540?v=3","gravatar_id":"","url":"https://api.github.com/users/madhugb","html_url":"https://github.com/madhugb","followers_url":"https://api.github.com/users/madhugb/followers","following_url":"https://api.github.com/users/madhugb/following{/other_user}","gists_url":"https://api.github.com/users/madhugb/gists{/gist_id}","starred_url":"https://api.github.com/users/madhugb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhugb/subscriptions","organizations_url":"https://api.github.com/users/madhugb/orgs","repos_url":"https://api.github.com/users/madhugb/repos","events_url":"https://api.github.com/users/madhugb/events{/privacy}","received_events_url":"https://api.github.com/users/madhugb/received_events","type":"User","site_admin":false},"body":"With the addition of `inbox` by gmail, the threadIds are changed.\r\n\r\nPreviously the first_email is used to be the thread id, but if you send an email from inbox.google.com and check the same email in gmail the thread id is not same as first_email. \r\n\r\nSo adding thread_id as an extra key for identifying the thread. That changes the value of first_email, so added first index of threads as first_email.\r\n\r\n","created_at":"2015-01-22T07:44:31Z","updated_at":"2015-01-24T04:36:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"98ca674110aa5308a61661d1e5f2cec79f707ff6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139/commits","review_comments_url":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139/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/139/comments","statuses_url":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/578c910261b31f4eecb48dfc999a0fb21d656560","head":{"label":"madhugb:master","ref":"master","sha":"578c910261b31f4eecb48dfc999a0fb21d656560","user":{"login":"madhugb","id":538540,"avatar_url":"https://avatars.githubusercontent.com/u/538540?v=3","gravatar_id":"","url":"https://api.github.com/users/madhugb","html_url":"https://github.com/madhugb","followers_url":"https://api.github.com/users/madhugb/followers","following_url":"https://api.github.com/users/madhugb/following{/other_user}","gists_url":"https://api.github.com/users/madhugb/gists{/gist_id}","starred_url":"https://api.github.com/users/madhugb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhugb/subscriptions","organizations_url":"https://api.github.com/users/madhugb/orgs","repos_url":"https://api.github.com/users/madhugb/repos","events_url":"https://api.github.com/users/madhugb/events{/privacy}","received_events_url":"https://api.github.com/users/madhugb/received_events","type":"User","site_admin":false},"repo":{"id":22202067,"name":"gmail.js","full_name":"madhugb/gmail.js","owner":{"login":"madhugb","id":538540,"avatar_url":"https://avatars.githubusercontent.com/u/538540?v=3","gravatar_id":"","url":"https://api.github.com/users/madhugb","html_url":"https://github.com/madhugb","followers_url":"https://api.github.com/users/madhugb/followers","following_url":"https://api.github.com/users/madhugb/following{/other_user}","gists_url":"https://api.github.com/users/madhugb/gists{/gist_id}","starred_url":"https://api.github.com/users/madhugb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madhugb/subscriptions","organizations_url":"https://api.github.com/users/madhugb/orgs","repos_url":"https://api.github.com/users/madhugb/repos","events_url":"https://api.github.com/users/madhugb/events{/privacy}","received_events_url":"https://api.github.com/users/madhugb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madhugb/gmail.js","description":"JavaScript API for Gmail","fork":true,"url":"https://api.github.com/repos/madhugb/gmail.js","forks_url":"https://api.github.com/repos/madhugb/gmail.js/forks","keys_url":"https://api.github.com/repos/madhugb/gmail.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madhugb/gmail.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madhugb/gmail.js/teams","hooks_url":"https://api.github.com/repos/madhugb/gmail.js/hooks","issue_events_url":"https://api.github.com/repos/madhugb/gmail.js/issues/events{/number}","events_url":"https://api.github.com/repos/madhugb/gmail.js/events","assignees_url":"https://api.github.com/repos/madhugb/gmail.js/assignees{/user}","branches_url":"https://api.github.com/repos/madhugb/gmail.js/branches{/branch}","tags_url":"https://api.github.com/repos/madhugb/gmail.js/tags","blobs_url":"https://api.github.com/repos/madhugb/gmail.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madhugb/gmail.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madhugb/gmail.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/madhugb/gmail.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madhugb/gmail.js/statuses/{sha}","languages_url":"https://api.github.com/repos/madhugb/gmail.js/languages","stargazers_url":"https://api.github.com/repos/madhugb/gmail.js/stargazers","contributors_url":"https://api.github.com/repos/madhugb/gmail.js/contributors","subscribers_url":"https://api.github.com/repos/madhugb/gmail.js/subscribers","subscription_url":"https://api.github.com/repos/madhugb/gmail.js/subscription","commits_url":"https://api.github.com/repos/madhugb/gmail.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/madhugb/gmail.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/madhugb/gmail.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/madhugb/gmail.js/issues/comments/{number}","contents_url":"https://api.github.com/repos/madhugb/gmail.js/contents/{+path}","compare_url":"https://api.github.com/repos/madhugb/gmail.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madhugb/gmail.js/merges","archive_url":"https://api.github.com/repos/madhugb/gmail.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madhugb/gmail.js/downloads","issues_url":"https://api.github.com/repos/madhugb/gmail.js/issues{/number}","pulls_url":"https://api.github.com/repos/madhugb/gmail.js/pulls{/number}","milestones_url":"https://api.github.com/repos/madhugb/gmail.js/milestones{/number}","notifications_url":"https://api.github.com/repos/madhugb/gmail.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madhugb/gmail.js/labels{/name}","releases_url":"https://api.github.com/repos/madhugb/gmail.js/releases{/id}","created_at":"2014-07-24T06:43:01Z","updated_at":"2015-01-23T17:23:55Z","pushed_at":"2015-01-23T17:23:55Z","git_url":"git://github.com/madhugb/gmail.js.git","ssh_url":"git@github.com:madhugb/gmail.js.git","clone_url":"https://github.com/madhugb/gmail.js.git","svn_url":"https://github.com/madhugb/gmail.js","homepage":"","size":583,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"KartikTalwar:master","ref":"master","sha":"388224370b8646361828565474955a0880503508","user":{"login":"KartikTalwar","id":461702,"avatar_url":"https://avatars.githubusercontent.com/u/461702?v=3","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://avatars.githubusercontent.com/u/461702?v=3","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}","created_at":"2013-09-17T23:34:55Z","updated_at":"2015-01-23T19:52:50Z","pushed_at":"2015-01-01T06:14:43Z","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":1392,"stargazers_count":1727,"watchers_count":1727,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":142,"mirror_url":null,"open_issues_count":27,"forks":142,"open_issues":27,"watchers":1727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139"},"html":{"href":"https://github.com/KartikTalwar/gmail.js/pull/139"},"issue":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/139"},"comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/pulls/139/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/139/commits"},"statuses":{"href":"https://api.github.com/repos/KartikTalwar/gmail.js/statuses/578c910261b31f4eecb48dfc999a0fb21d656560"}}}}