{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/268347457","pull_request_review_id":217985353,"id":268347457,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2ODM0NzQ1Nw==","diff_hunk":"@@ -196,3 +206,51 @@ describe('findFirstUnread', () => {\n     expect(result).toEqual(unreadMessage);\n   });\n });\n+\n+describe('getLinkToMessage', () => {\n+  test('should return a stream link if message link copied from stream', () => {\n+    const auth = { realm: 'https://www.foo.bar/' };","path":"src/utils/__tests__/message-test.js","position":77,"original_position":77,"commit_id":"ecaa4c4dbc00f9e7ba586336a451315e1f0322ed","original_commit_id":"ecaa4c4dbc00f9e7ba586336a451315e1f0322ed","user":{"login":"ishammahajan","id":33200024,"node_id":"MDQ6VXNlcjMzMjAwMDI0","avatar_url":"https://avatars3.githubusercontent.com/u/33200024?v=4","gravatar_id":"","url":"https://api.github.com/users/ishammahajan","html_url":"https://github.com/ishammahajan","followers_url":"https://api.github.com/users/ishammahajan/followers","following_url":"https://api.github.com/users/ishammahajan/following{/other_user}","gists_url":"https://api.github.com/users/ishammahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/ishammahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishammahajan/subscriptions","organizations_url":"https://api.github.com/users/ishammahajan/orgs","repos_url":"https://api.github.com/users/ishammahajan/repos","events_url":"https://api.github.com/users/ishammahajan/events{/privacy}","received_events_url":"https://api.github.com/users/ishammahajan/received_events","type":"User","site_admin":false},"body":"I will fix this, thanks! 🙂 ","created_at":"2019-03-22T21:36:21Z","updated_at":"2019-03-22T21:36:21Z","html_url":"https://github.com/zulip/zulip-mobile/pull/3412#discussion_r268347457","pull_request_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/268347457"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/3412#discussion_r268347457"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412"}},"in_reply_to_id":268329256},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412","id":261822265,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYxODIyMjY1","html_url":"https://github.com/zulip/zulip-mobile/pull/3412","diff_url":"https://github.com/zulip/zulip-mobile/pull/3412.diff","patch_url":"https://github.com/zulip/zulip-mobile/pull/3412.patch","issue_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/3412","number":3412,"state":"open","locked":false,"title":"messageActionSheet: Add option to copy link of message to clipboard","user":{"login":"ishammahajan","id":33200024,"node_id":"MDQ6VXNlcjMzMjAwMDI0","avatar_url":"https://avatars3.githubusercontent.com/u/33200024?v=4","gravatar_id":"","url":"https://api.github.com/users/ishammahajan","html_url":"https://github.com/ishammahajan","followers_url":"https://api.github.com/users/ishammahajan/followers","following_url":"https://api.github.com/users/ishammahajan/following{/other_user}","gists_url":"https://api.github.com/users/ishammahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/ishammahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishammahajan/subscriptions","organizations_url":"https://api.github.com/users/ishammahajan/orgs","repos_url":"https://api.github.com/users/ishammahajan/repos","events_url":"https://api.github.com/users/ishammahajan/events{/privacy}","received_events_url":"https://api.github.com/users/ishammahajan/received_events","type":"User","site_admin":false},"body":"There are use cases where a person wants to share a message with others \r\nwho he knows have access to a particular stream. To resolve this, in this \r\ncommit, another option is added in the action sheet which shows up when \r\na message is long pressed, which  copies the link of the message to the \r\nClipboard.\r\n\r\nI am concerned as to whether I should include tests for either of the files \r\nsince I don't see any cases where something could go wrong. I have included \r\ntranslation for only English for now, because I wanted to make sure \r\neverything else is correct. I have also amended the `share` functionality \r\nto include a sweet little message which contains the link to the stream to \r\nmake it more useful. Please advise on both the tests and this.\r\n\r\nFixes #2623","created_at":"2019-03-17T06:35:44Z","updated_at":"2019-03-22T21:36:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd527b149fe3d45e2d072d4632b968cc84788fcf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412/comments","review_comment_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/3412/comments","statuses_url":"https://api.github.com/repos/zulip/zulip-mobile/statuses/ecaa4c4dbc00f9e7ba586336a451315e1f0322ed","head":{"label":"ishammahajan:copy-message-link","ref":"copy-message-link","sha":"ecaa4c4dbc00f9e7ba586336a451315e1f0322ed","user":{"login":"ishammahajan","id":33200024,"node_id":"MDQ6VXNlcjMzMjAwMDI0","avatar_url":"https://avatars3.githubusercontent.com/u/33200024?v=4","gravatar_id":"","url":"https://api.github.com/users/ishammahajan","html_url":"https://github.com/ishammahajan","followers_url":"https://api.github.com/users/ishammahajan/followers","following_url":"https://api.github.com/users/ishammahajan/following{/other_user}","gists_url":"https://api.github.com/users/ishammahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/ishammahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishammahajan/subscriptions","organizations_url":"https://api.github.com/users/ishammahajan/orgs","repos_url":"https://api.github.com/users/ishammahajan/repos","events_url":"https://api.github.com/users/ishammahajan/events{/privacy}","received_events_url":"https://api.github.com/users/ishammahajan/received_events","type":"User","site_admin":false},"repo":{"id":175236361,"node_id":"MDEwOlJlcG9zaXRvcnkxNzUyMzYzNjE=","name":"zulip-mobile","full_name":"ishammahajan/zulip-mobile","private":false,"owner":{"login":"ishammahajan","id":33200024,"node_id":"MDQ6VXNlcjMzMjAwMDI0","avatar_url":"https://avatars3.githubusercontent.com/u/33200024?v=4","gravatar_id":"","url":"https://api.github.com/users/ishammahajan","html_url":"https://github.com/ishammahajan","followers_url":"https://api.github.com/users/ishammahajan/followers","following_url":"https://api.github.com/users/ishammahajan/following{/other_user}","gists_url":"https://api.github.com/users/ishammahajan/gists{/gist_id}","starred_url":"https://api.github.com/users/ishammahajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishammahajan/subscriptions","organizations_url":"https://api.github.com/users/ishammahajan/orgs","repos_url":"https://api.github.com/users/ishammahajan/repos","events_url":"https://api.github.com/users/ishammahajan/events{/privacy}","received_events_url":"https://api.github.com/users/ishammahajan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ishammahajan/zulip-mobile","description":"The Zulip app for Android and iOS.","fork":true,"url":"https://api.github.com/repos/ishammahajan/zulip-mobile","forks_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/forks","keys_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/teams","hooks_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/hooks","issue_events_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/events","assignees_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/tags","blobs_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/languages","stargazers_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/stargazers","contributors_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/contributors","subscribers_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/subscribers","subscription_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/subscription","commits_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/merges","archive_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/downloads","issues_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/labels{/name}","releases_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/ishammahajan/zulip-mobile/deployments","created_at":"2019-03-12T15:00:49Z","updated_at":"2019-03-17T07:13:01Z","pushed_at":"2019-03-22T20:09:20Z","git_url":"git://github.com/ishammahajan/zulip-mobile.git","ssh_url":"git@github.com:ishammahajan/zulip-mobile.git","clone_url":"https://github.com/ishammahajan/zulip-mobile.git","svn_url":"https://github.com/ishammahajan/zulip-mobile","homepage":"","size":23204,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"99c049f164f001847add27e15d21ef4c304578d2","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":58298428,"node_id":"MDEwOlJlcG9zaXRvcnk1ODI5ODQyOA==","name":"zulip-mobile","full_name":"zulip/zulip-mobile","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-mobile","description":"The Zulip app for Android and iOS.","fork":false,"url":"https://api.github.com/repos/zulip/zulip-mobile","forks_url":"https://api.github.com/repos/zulip/zulip-mobile/forks","keys_url":"https://api.github.com/repos/zulip/zulip-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zulip/zulip-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zulip/zulip-mobile/teams","hooks_url":"https://api.github.com/repos/zulip/zulip-mobile/hooks","issue_events_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/zulip/zulip-mobile/events","assignees_url":"https://api.github.com/repos/zulip/zulip-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/zulip/zulip-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/zulip/zulip-mobile/tags","blobs_url":"https://api.github.com/repos/zulip/zulip-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zulip/zulip-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zulip/zulip-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/zulip/zulip-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zulip/zulip-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/zulip/zulip-mobile/languages","stargazers_url":"https://api.github.com/repos/zulip/zulip-mobile/stargazers","contributors_url":"https://api.github.com/repos/zulip/zulip-mobile/contributors","subscribers_url":"https://api.github.com/repos/zulip/zulip-mobile/subscribers","subscription_url":"https://api.github.com/repos/zulip/zulip-mobile/subscription","commits_url":"https://api.github.com/repos/zulip/zulip-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/zulip/zulip-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/zulip/zulip-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/zulip/zulip-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/zulip/zulip-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zulip/zulip-mobile/merges","archive_url":"https://api.github.com/repos/zulip/zulip-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zulip/zulip-mobile/downloads","issues_url":"https://api.github.com/repos/zulip/zulip-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/zulip/zulip-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/zulip/zulip-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zulip/zulip-mobile/labels{/name}","releases_url":"https://api.github.com/repos/zulip/zulip-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/zulip/zulip-mobile/deployments","created_at":"2016-05-08T05:41:48Z","updated_at":"2019-03-22T21:05:37Z","pushed_at":"2019-03-22T21:05:22Z","git_url":"git://github.com/zulip/zulip-mobile.git","ssh_url":"git@github.com:zulip/zulip-mobile.git","clone_url":"https://github.com/zulip/zulip-mobile.git","svn_url":"https://github.com/zulip/zulip-mobile","homepage":"","size":23205,"stargazers_count":604,"watchers_count":604,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":232,"mirror_url":null,"archived":false,"open_issues_count":394,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":232,"open_issues":394,"watchers":604,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/3412"},"issue":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/3412"},"comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/3412/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412/comments"},"review_comment":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/3412/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip-mobile/statuses/ecaa4c4dbc00f9e7ba586336a451315e1f0322ed"}},"author_association":"NONE"}}
{"actor":{"display_login":"ishammahajan"}}