{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/181577098","pull_request_review_id":112232191,"id":181577098,"diff_hunk":"@@ -105,6 +109,30 @@ class MessageListContainer extends PureComponent<Props> {\n     );\n   };\n \n+  handleUrlLongPress = (src: string) => {\n+    if (isUrlAnImage(src)) {","path":"src/message/MessageListContainer.js","position":34,"original_position":34,"commit_id":"c339f4d0135bd3337614953ec42abf46d1f12d71","original_commit_id":"d52aab5fda3acd901f0a5d3c6dff4d697762742d","user":{"login":"jainkuniya","id":18511177,"avatar_url":"https://avatars3.githubusercontent.com/u/18511177?v=4","gravatar_id":"","url":"https://api.github.com/users/jainkuniya","html_url":"https://github.com/jainkuniya","followers_url":"https://api.github.com/users/jainkuniya/followers","following_url":"https://api.github.com/users/jainkuniya/following{/other_user}","gists_url":"https://api.github.com/users/jainkuniya/gists{/gist_id}","starred_url":"https://api.github.com/users/jainkuniya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jainkuniya/subscriptions","organizations_url":"https://api.github.com/users/jainkuniya/orgs","repos_url":"https://api.github.com/users/jainkuniya/repos","events_url":"https://api.github.com/users/jainkuniya/events{/privacy}","received_events_url":"https://api.github.com/users/jainkuniya/received_events","type":"User","site_admin":false},"body":"This is definitely not a right place to handle.\r\n`UrlLongPress` is sub part of `onLongPress`, try to embed in that. \r\n(may be pass a flag for differentiating which element and act accordingly)","created_at":"2018-04-15T10:05:02Z","updated_at":"2018-04-15T10:30:53Z","html_url":"https://github.com/zulip/zulip-mobile/pull/2278#discussion_r181577098","pull_request_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/181577098"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/2278#discussion_r181577098"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278"}},"in_reply_to_id":181535262},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278","id":180915170,"html_url":"https://github.com/zulip/zulip-mobile/pull/2278","diff_url":"https://github.com/zulip/zulip-mobile/pull/2278.diff","patch_url":"https://github.com/zulip/zulip-mobile/pull/2278.patch","issue_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/2278","number":2278,"state":"open","locked":false,"title":"Enhancement: Adds Options onLongPress depending on the type of message","user":{"login":"pulkonet","id":24983958,"avatar_url":"https://avatars1.githubusercontent.com/u/24983958?v=4","gravatar_id":"","url":"https://api.github.com/users/pulkonet","html_url":"https://github.com/pulkonet","followers_url":"https://api.github.com/users/pulkonet/followers","following_url":"https://api.github.com/users/pulkonet/following{/other_user}","gists_url":"https://api.github.com/users/pulkonet/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkonet/subscriptions","organizations_url":"https://api.github.com/users/pulkonet/orgs","repos_url":"https://api.github.com/users/pulkonet/repos","events_url":"https://api.github.com/users/pulkonet/events{/privacy}","received_events_url":"https://api.github.com/users/pulkonet/received_events","type":"User","site_admin":false},"body":"Closes #2249 and #2122.\r\n\r\nBefore:\r\n![before](https://user-images.githubusercontent.com/24983958/38621429-864ae950-3dbe-11e8-9984-0fa870dc3d8c.png)\r\nAfter:\r\n![after](https://user-images.githubusercontent.com/24983958/38621442-8bb493f0-3dbe-11e8-97aa-03eb7470791b.png)\r\n\r\nThis PR is focused on enhancing the `longPress` event in messages based on the type of message.\r\nIf the message is a normal text message it shows the regular `messageActionSheet`, else if the message is an image or image link it shows `lightBoxActionSheet` else if the message is a URL the URL gets copied to the clipboard directly.","created_at":"2018-04-11T14:04:21Z","updated_at":"2018-04-15T10:30:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c10968cda83f02d1cec3f4df3dbfe2af8883fde","assignee":null,"assignees":[],"requested_reviewers":[{"login":"borisyankov","id":867242,"avatar_url":"https://avatars3.githubusercontent.com/u/867242?v=4","gravatar_id":"","url":"https://api.github.com/users/borisyankov","html_url":"https://github.com/borisyankov","followers_url":"https://api.github.com/users/borisyankov/followers","following_url":"https://api.github.com/users/borisyankov/following{/other_user}","gists_url":"https://api.github.com/users/borisyankov/gists{/gist_id}","starred_url":"https://api.github.com/users/borisyankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borisyankov/subscriptions","organizations_url":"https://api.github.com/users/borisyankov/orgs","repos_url":"https://api.github.com/users/borisyankov/repos","events_url":"https://api.github.com/users/borisyankov/events{/privacy}","received_events_url":"https://api.github.com/users/borisyankov/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":372673691,"url":"https://api.github.com/repos/zulip/zulip-mobile/labels/bug","name":"bug","color":"ee0701","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278/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/2278/comments","statuses_url":"https://api.github.com/repos/zulip/zulip-mobile/statuses/c339f4d0135bd3337614953ec42abf46d1f12d71","head":{"label":"pulkonet:url","ref":"url","sha":"c339f4d0135bd3337614953ec42abf46d1f12d71","user":{"login":"pulkonet","id":24983958,"avatar_url":"https://avatars1.githubusercontent.com/u/24983958?v=4","gravatar_id":"","url":"https://api.github.com/users/pulkonet","html_url":"https://github.com/pulkonet","followers_url":"https://api.github.com/users/pulkonet/followers","following_url":"https://api.github.com/users/pulkonet/following{/other_user}","gists_url":"https://api.github.com/users/pulkonet/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkonet/subscriptions","organizations_url":"https://api.github.com/users/pulkonet/orgs","repos_url":"https://api.github.com/users/pulkonet/repos","events_url":"https://api.github.com/users/pulkonet/events{/privacy}","received_events_url":"https://api.github.com/users/pulkonet/received_events","type":"User","site_admin":false},"repo":{"id":115833107,"name":"zulip-mobile","full_name":"pulkonet/zulip-mobile","owner":{"login":"pulkonet","id":24983958,"avatar_url":"https://avatars1.githubusercontent.com/u/24983958?v=4","gravatar_id":"","url":"https://api.github.com/users/pulkonet","html_url":"https://github.com/pulkonet","followers_url":"https://api.github.com/users/pulkonet/followers","following_url":"https://api.github.com/users/pulkonet/following{/other_user}","gists_url":"https://api.github.com/users/pulkonet/gists{/gist_id}","starred_url":"https://api.github.com/users/pulkonet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulkonet/subscriptions","organizations_url":"https://api.github.com/users/pulkonet/orgs","repos_url":"https://api.github.com/users/pulkonet/repos","events_url":"https://api.github.com/users/pulkonet/events{/privacy}","received_events_url":"https://api.github.com/users/pulkonet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pulkonet/zulip-mobile","description":"Zulip mobile app using React Native","fork":true,"url":"https://api.github.com/repos/pulkonet/zulip-mobile","forks_url":"https://api.github.com/repos/pulkonet/zulip-mobile/forks","keys_url":"https://api.github.com/repos/pulkonet/zulip-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulkonet/zulip-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulkonet/zulip-mobile/teams","hooks_url":"https://api.github.com/repos/pulkonet/zulip-mobile/hooks","issue_events_url":"https://api.github.com/repos/pulkonet/zulip-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/pulkonet/zulip-mobile/events","assignees_url":"https://api.github.com/repos/pulkonet/zulip-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/pulkonet/zulip-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/pulkonet/zulip-mobile/tags","blobs_url":"https://api.github.com/repos/pulkonet/zulip-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulkonet/zulip-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulkonet/zulip-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulkonet/zulip-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulkonet/zulip-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/pulkonet/zulip-mobile/languages","stargazers_url":"https://api.github.com/repos/pulkonet/zulip-mobile/stargazers","contributors_url":"https://api.github.com/repos/pulkonet/zulip-mobile/contributors","subscribers_url":"https://api.github.com/repos/pulkonet/zulip-mobile/subscribers","subscription_url":"https://api.github.com/repos/pulkonet/zulip-mobile/subscription","commits_url":"https://api.github.com/repos/pulkonet/zulip-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulkonet/zulip-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulkonet/zulip-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulkonet/zulip-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulkonet/zulip-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/pulkonet/zulip-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulkonet/zulip-mobile/merges","archive_url":"https://api.github.com/repos/pulkonet/zulip-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulkonet/zulip-mobile/downloads","issues_url":"https://api.github.com/repos/pulkonet/zulip-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/pulkonet/zulip-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/pulkonet/zulip-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/pulkonet/zulip-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulkonet/zulip-mobile/labels{/name}","releases_url":"https://api.github.com/repos/pulkonet/zulip-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/pulkonet/zulip-mobile/deployments","created_at":"2017-12-31T00:24:13Z","updated_at":"2018-04-15T00:24:26Z","pushed_at":"2018-04-15T05:39:01Z","git_url":"git://github.com/pulkonet/zulip-mobile.git","ssh_url":"git@github.com:pulkonet/zulip-mobile.git","clone_url":"https://github.com/pulkonet/zulip-mobile.git","svn_url":"https://github.com/pulkonet/zulip-mobile","homepage":"","size":19479,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"95676a3d4d56c37799fb51a19b75a4a0204458d2","user":{"login":"zulip","id":4921959,"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,"name":"zulip-mobile","full_name":"zulip/zulip-mobile","owner":{"login":"zulip","id":4921959,"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},"private":false,"html_url":"https://github.com/zulip/zulip-mobile","description":"Zulip mobile app using React Native","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":"2018-04-13T23:23:30Z","pushed_at":"2018-04-15T07:03:50Z","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":19491,"stargazers_count":307,"watchers_count":307,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":135,"mirror_url":null,"archived":false,"open_issues_count":184,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":135,"open_issues":184,"watchers":307,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/2278"},"issue":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/2278"},"comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/2278/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/2278/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/2278/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip-mobile/statuses/c339f4d0135bd3337614953ec42abf46d1f12d71"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jainkuniya"}}