{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/40491003","id":40491003,"diff_hunk":"@@ -398,8 +398,8 @@ var InboxView = {\n     selected.forEach((id) => {\n       var thread = Threads.get(+id);\n \n-      var markable = thread && !thread.isDraft &&\n-        (isRead || !thread.getDraft());\n+      var markable = thread && !thread.isDraft && \n+              (isRead || !thread.getDraft()) && !(thread.unreadCount ^ isRead));","path":"apps/sms/views/inbox/js/inbox.js","position":7,"original_position":7,"commit_id":"889cfd110f4c98c00b565097f31ca52e2b7f0034","original_commit_id":"889cfd110f4c98c00b565097f31ca52e2b7f0034","user":{"login":"kumarrishav","id":4078325,"avatar_url":"https://avatars.githubusercontent.com/u/4078325?v=3","gravatar_id":"","url":"https://api.github.com/users/kumarrishav","html_url":"https://github.com/kumarrishav","followers_url":"https://api.github.com/users/kumarrishav/followers","following_url":"https://api.github.com/users/kumarrishav/following{/other_user}","gists_url":"https://api.github.com/users/kumarrishav/gists{/gist_id}","starred_url":"https://api.github.com/users/kumarrishav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumarrishav/subscriptions","organizations_url":"https://api.github.com/users/kumarrishav/orgs","repos_url":"https://api.github.com/users/kumarrishav/repos","events_url":"https://api.github.com/users/kumarrishav/events{/privacy}","received_events_url":"https://api.github.com/users/kumarrishav/received_events","type":"User","site_admin":false},"body":"Still indentation issue. See previous code[in pink background]. How it was before :)","created_at":"2015-09-26T07:04:09Z","updated_at":"2015-09-26T07:04:09Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/32059#discussion_r40491003","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/40491003"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32059#discussion_r40491003"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059","id":46002785,"html_url":"https://github.com/mozilla-b2g/gaia/pull/32059","diff_url":"https://github.com/mozilla-b2g/gaia/pull/32059.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/32059.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32059","number":32059,"state":"open","locked":false,"title":"modified Bug 1207081 - [Messages] Make filtering better for markable thread in InboxView.markReadUnread method","user":{"login":"s142857","id":13268492,"avatar_url":"https://avatars.githubusercontent.com/u/13268492?v=3","gravatar_id":"","url":"https://api.github.com/users/s142857","html_url":"https://github.com/s142857","followers_url":"https://api.github.com/users/s142857/followers","following_url":"https://api.github.com/users/s142857/following{/other_user}","gists_url":"https://api.github.com/users/s142857/gists{/gist_id}","starred_url":"https://api.github.com/users/s142857/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s142857/subscriptions","organizations_url":"https://api.github.com/users/s142857/orgs","repos_url":"https://api.github.com/users/s142857/repos","events_url":"https://api.github.com/users/s142857/events{/privacy}","received_events_url":"https://api.github.com/users/s142857/received_events","type":"User","site_admin":false},"body":"final PR\r\nhttps://bugzilla.mozilla.org/show_bug.cgi?id=1207081","created_at":"2015-09-25T11:38:59Z","updated_at":"2015-09-26T07:04:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"376f6dc575256de1e34ef610611c6629178b3c2d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32059/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/889cfd110f4c98c00b565097f31ca52e2b7f0034","head":{"label":"s142857:master","ref":"master","sha":"889cfd110f4c98c00b565097f31ca52e2b7f0034","user":{"login":"s142857","id":13268492,"avatar_url":"https://avatars.githubusercontent.com/u/13268492?v=3","gravatar_id":"","url":"https://api.github.com/users/s142857","html_url":"https://github.com/s142857","followers_url":"https://api.github.com/users/s142857/followers","following_url":"https://api.github.com/users/s142857/following{/other_user}","gists_url":"https://api.github.com/users/s142857/gists{/gist_id}","starred_url":"https://api.github.com/users/s142857/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s142857/subscriptions","organizations_url":"https://api.github.com/users/s142857/orgs","repos_url":"https://api.github.com/users/s142857/repos","events_url":"https://api.github.com/users/s142857/events{/privacy}","received_events_url":"https://api.github.com/users/s142857/received_events","type":"User","site_admin":false},"repo":{"id":43119517,"name":"gaia","full_name":"s142857/gaia","owner":{"login":"s142857","id":13268492,"avatar_url":"https://avatars.githubusercontent.com/u/13268492?v=3","gravatar_id":"","url":"https://api.github.com/users/s142857","html_url":"https://github.com/s142857","followers_url":"https://api.github.com/users/s142857/followers","following_url":"https://api.github.com/users/s142857/following{/other_user}","gists_url":"https://api.github.com/users/s142857/gists{/gist_id}","starred_url":"https://api.github.com/users/s142857/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s142857/subscriptions","organizations_url":"https://api.github.com/users/s142857/orgs","repos_url":"https://api.github.com/users/s142857/repos","events_url":"https://api.github.com/users/s142857/events{/privacy}","received_events_url":"https://api.github.com/users/s142857/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/s142857/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":true,"url":"https://api.github.com/repos/s142857/gaia","forks_url":"https://api.github.com/repos/s142857/gaia/forks","keys_url":"https://api.github.com/repos/s142857/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/s142857/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/s142857/gaia/teams","hooks_url":"https://api.github.com/repos/s142857/gaia/hooks","issue_events_url":"https://api.github.com/repos/s142857/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/s142857/gaia/events","assignees_url":"https://api.github.com/repos/s142857/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/s142857/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/s142857/gaia/tags","blobs_url":"https://api.github.com/repos/s142857/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/s142857/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/s142857/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/s142857/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/s142857/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/s142857/gaia/languages","stargazers_url":"https://api.github.com/repos/s142857/gaia/stargazers","contributors_url":"https://api.github.com/repos/s142857/gaia/contributors","subscribers_url":"https://api.github.com/repos/s142857/gaia/subscribers","subscription_url":"https://api.github.com/repos/s142857/gaia/subscription","commits_url":"https://api.github.com/repos/s142857/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/s142857/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/s142857/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/s142857/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/s142857/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/s142857/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/s142857/gaia/merges","archive_url":"https://api.github.com/repos/s142857/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/s142857/gaia/downloads","issues_url":"https://api.github.com/repos/s142857/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/s142857/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/s142857/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/s142857/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/s142857/gaia/labels{/name}","releases_url":"https://api.github.com/repos/s142857/gaia/releases{/id}","created_at":"2015-09-25T08:14:23Z","updated_at":"2015-09-25T08:15:36Z","pushed_at":"2015-09-26T06:58:50Z","git_url":"git://github.com/s142857/gaia.git","ssh_url":"git@github.com:s142857/gaia.git","clone_url":"https://github.com/s142857/gaia.git","svn_url":"https://github.com/s142857/gaia","homepage":"https://wiki.mozilla.org/B2G","size":960010,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"b819b99851e95f73ee5786cb1f15f72f2fdc2acc","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2015-09-24T09:41:23Z","pushed_at":"2015-09-26T06:58:51Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1639546,"stargazers_count":1983,"watchers_count":1983,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2445,"mirror_url":null,"open_issues_count":1226,"forks":2445,"open_issues":1226,"watchers":1983,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/32059"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32059"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/32059/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/32059/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/889cfd110f4c98c00b565097f31ca52e2b7f0034"}}}}