{"action":"created","comment":{"url":"https://api.github.com/repos/scrollback/scrollback/pulls/comments/27467894","id":27467894,"diff_hunk":"@@ -86,7 +86,9 @@ module.exports = function(core, config, store) {\n \t\t\tsound = (user && user.params && user.params.notifications && typeof user.params.notifications.sound === \"boolean\") ? user.params.notifications.sound : true;\n \n \t\tif (user && text.mentions && text.mentions.indexOf(user.id) > -1) {\n-\t\t\tbrowserNotify(text.text, true, sound);\n+\t\t\tif (store.get(\"nav\", \"mode\") === \"chat\" && store.get(\"nav\", \"room\") === text.to) {","path":"ui/modules/notifications.js","position":5,"original_position":5,"commit_id":"d038b7070d04429d693df9b6801455d80cb6e694","original_commit_id":"d038b7070d04429d693df9b6801455d80cb6e694","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long.","created_at":"2015-03-31T10:28:38Z","updated_at":"2015-03-31T10:28:38Z","html_url":"https://github.com/scrollback/scrollback/pull/568#discussion_r27467894","pull_request_url":"https://api.github.com/repos/scrollback/scrollback/pulls/568","_links":{"self":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/comments/27467894"},"html":{"href":"https://github.com/scrollback/scrollback/pull/568#discussion_r27467894"},"pull_request":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/568"}}},"pull_request":{"url":"https://api.github.com/repos/scrollback/scrollback/pulls/568","id":32295616,"html_url":"https://github.com/scrollback/scrollback/pull/568","diff_url":"https://github.com/scrollback/scrollback/pull/568.diff","patch_url":"https://github.com/scrollback/scrollback/pull/568.patch","issue_url":"https://api.github.com/repos/scrollback/scrollback/issues/568","number":568,"state":"open","locked":false,"title":"Tweaks to notifications","user":{"login":"satya164","id":1174278,"avatar_url":"https://avatars.githubusercontent.com/u/1174278?v=3","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T06:57:50Z","updated_at":"2015-03-31T10:28:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1da2e4907b4c113bbf799a527a9490c877e56968","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scrollback/scrollback/pulls/568/commits","review_comments_url":"https://api.github.com/repos/scrollback/scrollback/pulls/568/comments","review_comment_url":"https://api.github.com/repos/scrollback/scrollback/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scrollback/scrollback/issues/568/comments","statuses_url":"https://api.github.com/repos/scrollback/scrollback/statuses/d038b7070d04429d693df9b6801455d80cb6e694","head":{"label":"scrollback:notify","ref":"notify","sha":"d038b7070d04429d693df9b6801455d80cb6e694","user":{"login":"scrollback","id":4928074,"avatar_url":"https://avatars.githubusercontent.com/u/4928074?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollback","html_url":"https://github.com/scrollback","followers_url":"https://api.github.com/users/scrollback/followers","following_url":"https://api.github.com/users/scrollback/following{/other_user}","gists_url":"https://api.github.com/users/scrollback/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollback/subscriptions","organizations_url":"https://api.github.com/users/scrollback/orgs","repos_url":"https://api.github.com/users/scrollback/repos","events_url":"https://api.github.com/users/scrollback/events{/privacy}","received_events_url":"https://api.github.com/users/scrollback/received_events","type":"Organization","site_admin":false},"repo":{"id":11632485,"name":"scrollback","full_name":"scrollback/scrollback","owner":{"login":"scrollback","id":4928074,"avatar_url":"https://avatars.githubusercontent.com/u/4928074?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollback","html_url":"https://github.com/scrollback","followers_url":"https://api.github.com/users/scrollback/followers","following_url":"https://api.github.com/users/scrollback/following{/other_user}","gists_url":"https://api.github.com/users/scrollback/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollback/subscriptions","organizations_url":"https://api.github.com/users/scrollback/orgs","repos_url":"https://api.github.com/users/scrollback/repos","events_url":"https://api.github.com/users/scrollback/events{/privacy}","received_events_url":"https://api.github.com/users/scrollback/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrollback/scrollback","description":"Embeddable cross-platform chat for communities","fork":false,"url":"https://api.github.com/repos/scrollback/scrollback","forks_url":"https://api.github.com/repos/scrollback/scrollback/forks","keys_url":"https://api.github.com/repos/scrollback/scrollback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrollback/scrollback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrollback/scrollback/teams","hooks_url":"https://api.github.com/repos/scrollback/scrollback/hooks","issue_events_url":"https://api.github.com/repos/scrollback/scrollback/issues/events{/number}","events_url":"https://api.github.com/repos/scrollback/scrollback/events","assignees_url":"https://api.github.com/repos/scrollback/scrollback/assignees{/user}","branches_url":"https://api.github.com/repos/scrollback/scrollback/branches{/branch}","tags_url":"https://api.github.com/repos/scrollback/scrollback/tags","blobs_url":"https://api.github.com/repos/scrollback/scrollback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrollback/scrollback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrollback/scrollback/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrollback/scrollback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrollback/scrollback/statuses/{sha}","languages_url":"https://api.github.com/repos/scrollback/scrollback/languages","stargazers_url":"https://api.github.com/repos/scrollback/scrollback/stargazers","contributors_url":"https://api.github.com/repos/scrollback/scrollback/contributors","subscribers_url":"https://api.github.com/repos/scrollback/scrollback/subscribers","subscription_url":"https://api.github.com/repos/scrollback/scrollback/subscription","commits_url":"https://api.github.com/repos/scrollback/scrollback/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrollback/scrollback/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrollback/scrollback/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrollback/scrollback/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrollback/scrollback/contents/{+path}","compare_url":"https://api.github.com/repos/scrollback/scrollback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrollback/scrollback/merges","archive_url":"https://api.github.com/repos/scrollback/scrollback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrollback/scrollback/downloads","issues_url":"https://api.github.com/repos/scrollback/scrollback/issues{/number}","pulls_url":"https://api.github.com/repos/scrollback/scrollback/pulls{/number}","milestones_url":"https://api.github.com/repos/scrollback/scrollback/milestones{/number}","notifications_url":"https://api.github.com/repos/scrollback/scrollback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrollback/scrollback/labels{/name}","releases_url":"https://api.github.com/repos/scrollback/scrollback/releases{/id}","created_at":"2013-07-24T10:49:24Z","updated_at":"2015-03-31T10:24:36Z","pushed_at":"2015-03-31T10:28:37Z","git_url":"git://github.com/scrollback/scrollback.git","ssh_url":"git@github.com:scrollback/scrollback.git","clone_url":"https://github.com/scrollback/scrollback.git","svn_url":"https://github.com/scrollback/scrollback","homepage":null,"size":44095,"stargazers_count":423,"watchers_count":423,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":33,"forks":115,"open_issues":33,"watchers":423,"default_branch":"master"}},"base":{"label":"scrollback:master","ref":"master","sha":"f4fca56b44248e697f97402382f3a55290925d11","user":{"login":"scrollback","id":4928074,"avatar_url":"https://avatars.githubusercontent.com/u/4928074?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollback","html_url":"https://github.com/scrollback","followers_url":"https://api.github.com/users/scrollback/followers","following_url":"https://api.github.com/users/scrollback/following{/other_user}","gists_url":"https://api.github.com/users/scrollback/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollback/subscriptions","organizations_url":"https://api.github.com/users/scrollback/orgs","repos_url":"https://api.github.com/users/scrollback/repos","events_url":"https://api.github.com/users/scrollback/events{/privacy}","received_events_url":"https://api.github.com/users/scrollback/received_events","type":"Organization","site_admin":false},"repo":{"id":11632485,"name":"scrollback","full_name":"scrollback/scrollback","owner":{"login":"scrollback","id":4928074,"avatar_url":"https://avatars.githubusercontent.com/u/4928074?v=3","gravatar_id":"","url":"https://api.github.com/users/scrollback","html_url":"https://github.com/scrollback","followers_url":"https://api.github.com/users/scrollback/followers","following_url":"https://api.github.com/users/scrollback/following{/other_user}","gists_url":"https://api.github.com/users/scrollback/gists{/gist_id}","starred_url":"https://api.github.com/users/scrollback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrollback/subscriptions","organizations_url":"https://api.github.com/users/scrollback/orgs","repos_url":"https://api.github.com/users/scrollback/repos","events_url":"https://api.github.com/users/scrollback/events{/privacy}","received_events_url":"https://api.github.com/users/scrollback/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scrollback/scrollback","description":"Embeddable cross-platform chat for communities","fork":false,"url":"https://api.github.com/repos/scrollback/scrollback","forks_url":"https://api.github.com/repos/scrollback/scrollback/forks","keys_url":"https://api.github.com/repos/scrollback/scrollback/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scrollback/scrollback/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scrollback/scrollback/teams","hooks_url":"https://api.github.com/repos/scrollback/scrollback/hooks","issue_events_url":"https://api.github.com/repos/scrollback/scrollback/issues/events{/number}","events_url":"https://api.github.com/repos/scrollback/scrollback/events","assignees_url":"https://api.github.com/repos/scrollback/scrollback/assignees{/user}","branches_url":"https://api.github.com/repos/scrollback/scrollback/branches{/branch}","tags_url":"https://api.github.com/repos/scrollback/scrollback/tags","blobs_url":"https://api.github.com/repos/scrollback/scrollback/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scrollback/scrollback/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scrollback/scrollback/git/refs{/sha}","trees_url":"https://api.github.com/repos/scrollback/scrollback/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scrollback/scrollback/statuses/{sha}","languages_url":"https://api.github.com/repos/scrollback/scrollback/languages","stargazers_url":"https://api.github.com/repos/scrollback/scrollback/stargazers","contributors_url":"https://api.github.com/repos/scrollback/scrollback/contributors","subscribers_url":"https://api.github.com/repos/scrollback/scrollback/subscribers","subscription_url":"https://api.github.com/repos/scrollback/scrollback/subscription","commits_url":"https://api.github.com/repos/scrollback/scrollback/commits{/sha}","git_commits_url":"https://api.github.com/repos/scrollback/scrollback/git/commits{/sha}","comments_url":"https://api.github.com/repos/scrollback/scrollback/comments{/number}","issue_comment_url":"https://api.github.com/repos/scrollback/scrollback/issues/comments{/number}","contents_url":"https://api.github.com/repos/scrollback/scrollback/contents/{+path}","compare_url":"https://api.github.com/repos/scrollback/scrollback/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scrollback/scrollback/merges","archive_url":"https://api.github.com/repos/scrollback/scrollback/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scrollback/scrollback/downloads","issues_url":"https://api.github.com/repos/scrollback/scrollback/issues{/number}","pulls_url":"https://api.github.com/repos/scrollback/scrollback/pulls{/number}","milestones_url":"https://api.github.com/repos/scrollback/scrollback/milestones{/number}","notifications_url":"https://api.github.com/repos/scrollback/scrollback/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scrollback/scrollback/labels{/name}","releases_url":"https://api.github.com/repos/scrollback/scrollback/releases{/id}","created_at":"2013-07-24T10:49:24Z","updated_at":"2015-03-31T10:24:36Z","pushed_at":"2015-03-31T10:28:37Z","git_url":"git://github.com/scrollback/scrollback.git","ssh_url":"git@github.com:scrollback/scrollback.git","clone_url":"https://github.com/scrollback/scrollback.git","svn_url":"https://github.com/scrollback/scrollback","homepage":null,"size":44095,"stargazers_count":423,"watchers_count":423,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":33,"forks":115,"open_issues":33,"watchers":423,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/568"},"html":{"href":"https://github.com/scrollback/scrollback/pull/568"},"issue":{"href":"https://api.github.com/repos/scrollback/scrollback/issues/568"},"comments":{"href":"https://api.github.com/repos/scrollback/scrollback/issues/568/comments"},"review_comments":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/568/comments"},"review_comment":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scrollback/scrollback/pulls/568/commits"},"statuses":{"href":"https://api.github.com/repos/scrollback/scrollback/statuses/d038b7070d04429d693df9b6801455d80cb6e694"}}}}