{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip/pulls/comments/55802591","id":55802591,"diff_hunk":"@@ -360,9 +360,7 @@ MessageList.prototype = {\n         }\n         var trailing_bookend_content, subscribed = stream_data.is_subscribed(stream);\n         if (subscribed) {\n-            if (this.last_message_historical) {\n-                trailing_bookend_content = this.subscribed_bookend_content(stream);\n-            }\n+            trailing_bookend_content = this.subscribed_bookend_content(stream);","path":"static/js/message_list.js","position":7,"original_position":7,"commit_id":"4e64dadb5beb2b043b8d9e541daf774bf55df4b1","original_commit_id":"4e64dadb5beb2b043b8d9e541daf774bf55df4b1","user":{"login":"krtkmj","id":6594924,"avatar_url":"https://avatars.githubusercontent.com/u/6594924?v=3","gravatar_id":"","url":"https://api.github.com/users/krtkmj","html_url":"https://github.com/krtkmj","followers_url":"https://api.github.com/users/krtkmj/followers","following_url":"https://api.github.com/users/krtkmj/following{/other_user}","gists_url":"https://api.github.com/users/krtkmj/gists{/gist_id}","starred_url":"https://api.github.com/users/krtkmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtkmj/subscriptions","organizations_url":"https://api.github.com/users/krtkmj/orgs","repos_url":"https://api.github.com/users/krtkmj/repos","events_url":"https://api.github.com/users/krtkmj/events{/privacy}","received_events_url":"https://api.github.com/users/krtkmj/received_events","type":"User","site_admin":false},"body":"At the end of a stream, not matter whether `this.last_message_historical` is true or false. If user is subscribed to stream, user can see a button to unsubscribe to stream(rather than first opening Streams page and then unsubscribing).","created_at":"2016-03-11T08:39:15Z","updated_at":"2016-03-11T08:39:15Z","html_url":"https://github.com/zulip/zulip/pull/495#discussion_r55802591","pull_request_url":"https://api.github.com/repos/zulip/zulip/pulls/495","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments/55802591"},"html":{"href":"https://github.com/zulip/zulip/pull/495#discussion_r55802591"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip/pulls/495"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip/pulls/495","id":61867091,"html_url":"https://github.com/zulip/zulip/pull/495","diff_url":"https://github.com/zulip/zulip/pull/495.diff","patch_url":"https://github.com/zulip/zulip/pull/495.patch","issue_url":"https://api.github.com/repos/zulip/zulip/issues/495","number":495,"state":"open","locked":false,"title":"Subscribe stream from narrow view","user":{"login":"krtkmj","id":6594924,"avatar_url":"https://avatars.githubusercontent.com/u/6594924?v=3","gravatar_id":"","url":"https://api.github.com/users/krtkmj","html_url":"https://github.com/krtkmj","followers_url":"https://api.github.com/users/krtkmj/followers","following_url":"https://api.github.com/users/krtkmj/following{/other_user}","gists_url":"https://api.github.com/users/krtkmj/gists{/gist_id}","starred_url":"https://api.github.com/users/krtkmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtkmj/subscriptions","organizations_url":"https://api.github.com/users/krtkmj/orgs","repos_url":"https://api.github.com/users/krtkmj/repos","events_url":"https://api.github.com/users/krtkmj/events{/privacy}","received_events_url":"https://api.github.com/users/krtkmj/received_events","type":"User","site_admin":false},"body":"Fixes #273 \r\nButton added below narrow view for subscribing to the channel.","created_at":"2016-03-07T02:54:16Z","updated_at":"2016-03-11T08:39:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd6f41794609c0cfafc40656bc2f4c00aab18a35","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip/pulls/495/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip/pulls/495/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/495/comments","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/4e64dadb5beb2b043b8d9e541daf774bf55df4b1","head":{"label":"krtkmj:subscribe-stream-from-narrow-view","ref":"subscribe-stream-from-narrow-view","sha":"4e64dadb5beb2b043b8d9e541daf774bf55df4b1","user":{"login":"krtkmj","id":6594924,"avatar_url":"https://avatars.githubusercontent.com/u/6594924?v=3","gravatar_id":"","url":"https://api.github.com/users/krtkmj","html_url":"https://github.com/krtkmj","followers_url":"https://api.github.com/users/krtkmj/followers","following_url":"https://api.github.com/users/krtkmj/following{/other_user}","gists_url":"https://api.github.com/users/krtkmj/gists{/gist_id}","starred_url":"https://api.github.com/users/krtkmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtkmj/subscriptions","organizations_url":"https://api.github.com/users/krtkmj/orgs","repos_url":"https://api.github.com/users/krtkmj/repos","events_url":"https://api.github.com/users/krtkmj/events{/privacy}","received_events_url":"https://api.github.com/users/krtkmj/received_events","type":"User","site_admin":false},"repo":{"id":53250007,"name":"zulip","full_name":"krtkmj/zulip","owner":{"login":"krtkmj","id":6594924,"avatar_url":"https://avatars.githubusercontent.com/u/6594924?v=3","gravatar_id":"","url":"https://api.github.com/users/krtkmj","html_url":"https://github.com/krtkmj","followers_url":"https://api.github.com/users/krtkmj/followers","following_url":"https://api.github.com/users/krtkmj/following{/other_user}","gists_url":"https://api.github.com/users/krtkmj/gists{/gist_id}","starred_url":"https://api.github.com/users/krtkmj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krtkmj/subscriptions","organizations_url":"https://api.github.com/users/krtkmj/orgs","repos_url":"https://api.github.com/users/krtkmj/repos","events_url":"https://api.github.com/users/krtkmj/events{/privacy}","received_events_url":"https://api.github.com/users/krtkmj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krtkmj/zulip","description":"Zulip server - powerful open source group chat","fork":true,"url":"https://api.github.com/repos/krtkmj/zulip","forks_url":"https://api.github.com/repos/krtkmj/zulip/forks","keys_url":"https://api.github.com/repos/krtkmj/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krtkmj/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krtkmj/zulip/teams","hooks_url":"https://api.github.com/repos/krtkmj/zulip/hooks","issue_events_url":"https://api.github.com/repos/krtkmj/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/krtkmj/zulip/events","assignees_url":"https://api.github.com/repos/krtkmj/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/krtkmj/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/krtkmj/zulip/tags","blobs_url":"https://api.github.com/repos/krtkmj/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krtkmj/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krtkmj/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/krtkmj/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krtkmj/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/krtkmj/zulip/languages","stargazers_url":"https://api.github.com/repos/krtkmj/zulip/stargazers","contributors_url":"https://api.github.com/repos/krtkmj/zulip/contributors","subscribers_url":"https://api.github.com/repos/krtkmj/zulip/subscribers","subscription_url":"https://api.github.com/repos/krtkmj/zulip/subscription","commits_url":"https://api.github.com/repos/krtkmj/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/krtkmj/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/krtkmj/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/krtkmj/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/krtkmj/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/krtkmj/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krtkmj/zulip/merges","archive_url":"https://api.github.com/repos/krtkmj/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krtkmj/zulip/downloads","issues_url":"https://api.github.com/repos/krtkmj/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/krtkmj/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/krtkmj/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/krtkmj/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krtkmj/zulip/labels{/name}","releases_url":"https://api.github.com/repos/krtkmj/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/krtkmj/zulip/deployments","created_at":"2016-03-06T10:49:22Z","updated_at":"2016-03-06T10:49:26Z","pushed_at":"2016-03-10T00:12:10Z","git_url":"git://github.com/krtkmj/zulip.git","ssh_url":"git@github.com:krtkmj/zulip.git","clone_url":"https://github.com/krtkmj/zulip.git","svn_url":"https://github.com/krtkmj/zulip","homepage":"","size":107391,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"zulip:master","ref":"master","sha":"3bf54e7da7248ba4e452e8712d24091dea016570","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"repo":{"id":43160685,"name":"zulip","full_name":"zulip/zulip","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars.githubusercontent.com/u/4921959?v=3","gravatar_id":"","url":"https://api.github.com/users/zulip","html_url":"https://github.com/zulip","followers_url":"https://api.github.com/users/zulip/followers","following_url":"https://api.github.com/users/zulip/following{/other_user}","gists_url":"https://api.github.com/users/zulip/gists{/gist_id}","starred_url":"https://api.github.com/users/zulip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zulip/subscriptions","organizations_url":"https://api.github.com/users/zulip/orgs","repos_url":"https://api.github.com/users/zulip/repos","events_url":"https://api.github.com/users/zulip/events{/privacy}","received_events_url":"https://api.github.com/users/zulip/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zulip/zulip","description":"Zulip server - powerful open source group chat","fork":false,"url":"https://api.github.com/repos/zulip/zulip","forks_url":"https://api.github.com/repos/zulip/zulip/forks","keys_url":"https://api.github.com/repos/zulip/zulip/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip/teams","hooks_url":"https://api.github.com/repos/zulip/zulip/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip/events","assignees_url":"https://api.github.com/repos/zulip/zulip/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip/tags","blobs_url":"https://api.github.com/repos/zulip/zulip/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip/subscription","commits_url":"https://api.github.com/repos/zulip/zulip/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip/merges","archive_url":"https://api.github.com/repos/zulip/zulip/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip/downloads","issues_url":"https://api.github.com/repos/zulip/zulip/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip/deployments","created_at":"2015-09-25T16:37:25Z","updated_at":"2016-03-11T06:46:31Z","pushed_at":"2016-03-11T08:31:05Z","git_url":"git://github.com/zulip/zulip.git","ssh_url":"git@github.com:zulip/zulip.git","clone_url":"https://github.com/zulip/zulip.git","svn_url":"https://github.com/zulip/zulip","homepage":"","size":110897,"stargazers_count":3737,"watchers_count":3737,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":488,"mirror_url":null,"open_issues_count":194,"forks":488,"open_issues":194,"watchers":3737,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip/pulls/495"},"html":{"href":"https://github.com/zulip/zulip/pull/495"},"issue":{"href":"https://api.github.com/repos/zulip/zulip/issues/495"},"comments":{"href":"https://api.github.com/repos/zulip/zulip/issues/495/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip/pulls/495/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip/pulls/495/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip/statuses/4e64dadb5beb2b043b8d9e541daf774bf55df4b1"}}}}