{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/comments/291949406","pull_request_review_id":247535245,"id":291949406,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MTk0OTQwNg==","diff_hunk":"@@ -115,6 +116,26 @@ def search_messages(self, text: str) -> None:\n         if focus_position >= 0 and focus_position < len(w_list):\n             self.model.msg_list.set_focus(focus_position)\n \n+    def mute_unmute_streams(self, button: Any) -> None:\n+        popup = PopUpConfirmation(self, button)\n+        self.gap = urwid.Divider()\n+        type_of_action = \"unmuting\" if button.stream_id in \\\n+            self.model.muted_streams else \"muting\"\n+        question = urwid.Text((\"bold\", \"Confirm \" + type_of_action +\n+                               \" of stream '\" + button.caption+\"' ?\"),\n+                              \"center\")\n+        prompt = urwid.LineBox(\n+            urwid.ListBox(\n+                urwid.SimpleFocusListWalker(\n+                    [question, self.gap, popup]\n+                )))\n+\n+        self.loop.widget = urwid.Overlay(\n+            prompt, self.view,\n+            align=(\"relative\", 20),","path":"zulipterminal/core.py","position":28,"original_position":28,"commit_id":"2fd8f63df6eef568ebd98ae0bc88f84776bec4e3","original_commit_id":"2fd8f63df6eef568ebd98ae0bc88f84776bec4e3","user":{"login":"shreyamalviya","id":44770317,"node_id":"MDQ6VXNlcjQ0NzcwMzE3","avatar_url":"https://avatars1.githubusercontent.com/u/44770317?v=4","gravatar_id":"","url":"https://api.github.com/users/shreyamalviya","html_url":"https://github.com/shreyamalviya","followers_url":"https://api.github.com/users/shreyamalviya/followers","following_url":"https://api.github.com/users/shreyamalviya/following{/other_user}","gists_url":"https://api.github.com/users/shreyamalviya/gists{/gist_id}","starred_url":"https://api.github.com/users/shreyamalviya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shreyamalviya/subscriptions","organizations_url":"https://api.github.com/users/shreyamalviya/orgs","repos_url":"https://api.github.com/users/shreyamalviya/repos","events_url":"https://api.github.com/users/shreyamalviya/events{/privacy}","received_events_url":"https://api.github.com/users/shreyamalviya/received_events","type":"User","site_admin":false},"body":"Aligning it relative to the window's size makes it look a little misplaced...\r\n\r\nThis is how it looks for me when the window is its full size:\r\n![image](https://user-images.githubusercontent.com/44770317/59187553-5429f500-8b93-11e9-8721-e341f0da5aa3.png)\r\n\r\nAnd this is how it looks when it's smaller:\r\n![image](https://user-images.githubusercontent.com/44770317/59187686-9e12db00-8b93-11e9-9556-e43fff1ee643.png)\r\n","created_at":"2019-06-10T09:54:58Z","updated_at":"2019-06-10T09:54:59Z","html_url":"https://github.com/zulip/zulip-terminal/pull/367#discussion_r291949406","pull_request_url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/comments/291949406"},"html":{"href":"https://github.com/zulip/zulip-terminal/pull/367#discussion_r291949406"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367","id":283714445,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgzNzE0NDQ1","html_url":"https://github.com/zulip/zulip-terminal/pull/367","diff_url":"https://github.com/zulip/zulip-terminal/pull/367.diff","patch_url":"https://github.com/zulip/zulip-terminal/pull/367.patch","issue_url":"https://api.github.com/repos/zulip/zulip-terminal/issues/367","number":367,"state":"open","locked":false,"title":"Add support to mute streams from ZT.","user":{"login":"sumanthvrao","id":30312566,"node_id":"MDQ6VXNlcjMwMzEyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/30312566?v=4","gravatar_id":"","url":"https://api.github.com/users/sumanthvrao","html_url":"https://github.com/sumanthvrao","followers_url":"https://api.github.com/users/sumanthvrao/followers","following_url":"https://api.github.com/users/sumanthvrao/following{/other_user}","gists_url":"https://api.github.com/users/sumanthvrao/gists{/gist_id}","starred_url":"https://api.github.com/users/sumanthvrao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumanthvrao/subscriptions","organizations_url":"https://api.github.com/users/sumanthvrao/orgs","repos_url":"https://api.github.com/users/sumanthvrao/repos","events_url":"https://api.github.com/users/sumanthvrao/events{/privacy}","received_events_url":"https://api.github.com/users/sumanthvrao/received_events","type":"User","site_admin":false},"body":"**Muting and Un-muting (muted) streams from ZT.**\r\n\r\n`m` keypress on stream buttons triggers a pop-up which can be used to confirm whether to mute streams or not. We mark muted streams as 'M' in the Left Bar, unmuting a muted stream replaces the 'M' with the current message count for the stream.\r\n![Muting streams](https://user-images.githubusercontent.com/30312566/58961258-6b996480-87c6-11e9-9202-0070745e863c.png)\r\n\r\n","created_at":"2019-05-30T16:07:16Z","updated_at":"2019-06-10T09:54:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b32c00dd5c0fbf770e6f2061e0599d9d991b135","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip-terminal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip-terminal/issues/367/comments","statuses_url":"https://api.github.com/repos/zulip/zulip-terminal/statuses/2fd8f63df6eef568ebd98ae0bc88f84776bec4e3","head":{"label":"sumanthvrao:zt-set-streams-muted-May-30","ref":"zt-set-streams-muted-May-30","sha":"2fd8f63df6eef568ebd98ae0bc88f84776bec4e3","user":{"login":"sumanthvrao","id":30312566,"node_id":"MDQ6VXNlcjMwMzEyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/30312566?v=4","gravatar_id":"","url":"https://api.github.com/users/sumanthvrao","html_url":"https://github.com/sumanthvrao","followers_url":"https://api.github.com/users/sumanthvrao/followers","following_url":"https://api.github.com/users/sumanthvrao/following{/other_user}","gists_url":"https://api.github.com/users/sumanthvrao/gists{/gist_id}","starred_url":"https://api.github.com/users/sumanthvrao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumanthvrao/subscriptions","organizations_url":"https://api.github.com/users/sumanthvrao/orgs","repos_url":"https://api.github.com/users/sumanthvrao/repos","events_url":"https://api.github.com/users/sumanthvrao/events{/privacy}","received_events_url":"https://api.github.com/users/sumanthvrao/received_events","type":"User","site_admin":false},"repo":{"id":164293413,"node_id":"MDEwOlJlcG9zaXRvcnkxNjQyOTM0MTM=","name":"zulip-terminal","full_name":"sumanthvrao/zulip-terminal","private":false,"owner":{"login":"sumanthvrao","id":30312566,"node_id":"MDQ6VXNlcjMwMzEyNTY2","avatar_url":"https://avatars3.githubusercontent.com/u/30312566?v=4","gravatar_id":"","url":"https://api.github.com/users/sumanthvrao","html_url":"https://github.com/sumanthvrao","followers_url":"https://api.github.com/users/sumanthvrao/followers","following_url":"https://api.github.com/users/sumanthvrao/following{/other_user}","gists_url":"https://api.github.com/users/sumanthvrao/gists{/gist_id}","starred_url":"https://api.github.com/users/sumanthvrao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumanthvrao/subscriptions","organizations_url":"https://api.github.com/users/sumanthvrao/orgs","repos_url":"https://api.github.com/users/sumanthvrao/repos","events_url":"https://api.github.com/users/sumanthvrao/events{/privacy}","received_events_url":"https://api.github.com/users/sumanthvrao/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sumanthvrao/zulip-terminal","description":"A terminal interface for Zulip.","fork":true,"url":"https://api.github.com/repos/sumanthvrao/zulip-terminal","forks_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/forks","keys_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/teams","hooks_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/hooks","issue_events_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/issues/events{/number}","events_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/events","assignees_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/assignees{/user}","branches_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/branches{/branch}","tags_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/tags","blobs_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/git/refs{/sha}","trees_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/statuses/{sha}","languages_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/languages","stargazers_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/stargazers","contributors_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/contributors","subscribers_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/subscribers","subscription_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/subscription","commits_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/commits{/sha}","git_commits_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/git/commits{/sha}","comments_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/comments{/number}","issue_comment_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/issues/comments{/number}","contents_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/contents/{+path}","compare_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/merges","archive_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/downloads","issues_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/issues{/number}","pulls_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/pulls{/number}","milestones_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/milestones{/number}","notifications_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/labels{/name}","releases_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/releases{/id}","deployments_url":"https://api.github.com/repos/sumanthvrao/zulip-terminal/deployments","created_at":"2019-01-06T09:36:18Z","updated_at":"2019-06-08T13:39:31Z","pushed_at":"2019-06-10T00:19:49Z","git_url":"git://github.com/sumanthvrao/zulip-terminal.git","ssh_url":"git@github.com:sumanthvrao/zulip-terminal.git","clone_url":"https://github.com/sumanthvrao/zulip-terminal.git","svn_url":"https://github.com/sumanthvrao/zulip-terminal","homepage":"","size":813,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"bebf557485ef0beafbdc48dc8ec87be016b24afd","user":{"login":"zulip","id":4921959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MjE5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","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":122704772,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI3MDQ3NzI=","name":"zulip-terminal","full_name":"zulip/zulip-terminal","private":false,"owner":{"login":"zulip","id":4921959,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5MjE5NTk=","avatar_url":"https://avatars2.githubusercontent.com/u/4921959?v=4","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},"html_url":"https://github.com/zulip/zulip-terminal","description":"A terminal interface for Zulip.","fork":false,"url":"https://api.github.com/repos/zulip/zulip-terminal","forks_url":"https://api.github.com/repos/zulip/zulip-terminal/forks","keys_url":"https://api.github.com/repos/zulip/zulip-terminal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip-terminal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip-terminal/teams","hooks_url":"https://api.github.com/repos/zulip/zulip-terminal/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip-terminal/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip-terminal/events","assignees_url":"https://api.github.com/repos/zulip/zulip-terminal/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip-terminal/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip-terminal/tags","blobs_url":"https://api.github.com/repos/zulip/zulip-terminal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip-terminal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip-terminal/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip-terminal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip-terminal/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip-terminal/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip-terminal/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip-terminal/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip-terminal/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip-terminal/subscription","commits_url":"https://api.github.com/repos/zulip/zulip-terminal/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip-terminal/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip-terminal/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip-terminal/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip-terminal/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip-terminal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip-terminal/merges","archive_url":"https://api.github.com/repos/zulip/zulip-terminal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip-terminal/downloads","issues_url":"https://api.github.com/repos/zulip/zulip-terminal/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip-terminal/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip-terminal/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip-terminal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip-terminal/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip-terminal/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip-terminal/deployments","created_at":"2018-02-24T05:01:59Z","updated_at":"2019-06-09T05:48:54Z","pushed_at":"2019-06-10T09:10:19Z","git_url":"git://github.com/zulip/zulip-terminal.git","ssh_url":"git@github.com:zulip/zulip-terminal.git","clone_url":"https://github.com/zulip/zulip-terminal.git","svn_url":"https://github.com/zulip/zulip-terminal","homepage":"","size":740,"stargazers_count":99,"watchers_count":99,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":79,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":53,"open_issues":79,"watchers":99,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367"},"html":{"href":"https://github.com/zulip/zulip-terminal/pull/367"},"issue":{"href":"https://api.github.com/repos/zulip/zulip-terminal/issues/367"},"comments":{"href":"https://api.github.com/repos/zulip/zulip-terminal/issues/367/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip-terminal/pulls/367/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip-terminal/statuses/2fd8f63df6eef568ebd98ae0bc88f84776bec4e3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"shreyamalviya"}}