{"action":"created","comment":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/113239390","pull_request_review_id":34610817,"id":113239390,"diff_hunk":"@@ -35,7 +30,7 @@ export default class MessageContainer extends React.PureComponent {\n         twentyFourHourTime={twentyFourHourTime}\n         selfEmail={auth.email}\n         doNarrow={doNarrow}\n-        onPress={this.handlePress}\n+        onLongPress={() => handleLongPress(message)}","path":"src/message/MessageContainer.js","position":20,"original_position":20,"commit_id":"b7adb5054b0af82ba0fbd10f837791700f39c467","original_commit_id":"b7adb5054b0af82ba0fbd10f837791700f39c467","user":{"login":"borisyankov","id":867242,"avatar_url":"https://avatars0.githubusercontent.com/u/867242?v=3","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},"body":"Extract that to a handleLongPress function in the class, and then onLongPress={this.handleLongPress}\r\n`() =>` creates a new function for each instance.","created_at":"2017-04-25T16:06:21Z","updated_at":"2017-04-25T16:06:21Z","html_url":"https://github.com/zulip/zulip-mobile/pull/378#discussion_r113239390","pull_request_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378","_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/comments/113239390"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/378#discussion_r113239390"},"pull_request":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378"}}},"pull_request":{"url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378","id":107128827,"html_url":"https://github.com/zulip/zulip-mobile/pull/378","diff_url":"https://github.com/zulip/zulip-mobile/pull/378.diff","patch_url":"https://github.com/zulip/zulip-mobile/pull/378.patch","issue_url":"https://api.github.com/repos/zulip/zulip-mobile/issues/378","number":378,"state":"open","locked":false,"title":"Long press on message","user":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars0.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-21T07:13:57Z","updated_at":"2017-04-25T16:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5dc0f97c26103be3d91855aa439932ab8b832f2","assignee":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars0.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"assignees":[{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars0.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378/commits","review_comments_url":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378/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/378/comments","statuses_url":"https://api.github.com/repos/zulip/zulip-mobile/statuses/b7adb5054b0af82ba0fbd10f837791700f39c467","head":{"label":"TomaszKolek:long-press-on-messages","ref":"long-press-on-messages","sha":"b7adb5054b0af82ba0fbd10f837791700f39c467","user":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars0.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"repo":{"id":81862981,"name":"zulip-mobile","full_name":"TomaszKolek/zulip-mobile","owner":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars0.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TomaszKolek/zulip-mobile","description":"Zulip mobile app using React Native","fork":true,"url":"https://api.github.com/repos/TomaszKolek/zulip-mobile","forks_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/forks","keys_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/teams","hooks_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/hooks","issue_events_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/events","assignees_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/tags","blobs_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/languages","stargazers_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/stargazers","contributors_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/contributors","subscribers_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/subscribers","subscription_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/subscription","commits_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/merges","archive_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/downloads","issues_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/labels{/name}","releases_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/TomaszKolek/zulip-mobile/deployments","created_at":"2017-02-13T19:32:44Z","updated_at":"2017-02-13T19:32:46Z","pushed_at":"2017-04-25T14:27:01Z","git_url":"git://github.com/TomaszKolek/zulip-mobile.git","ssh_url":"git@github.com:TomaszKolek/zulip-mobile.git","clone_url":"https://github.com/TomaszKolek/zulip-mobile.git","svn_url":"https://github.com/TomaszKolek/zulip-mobile","homepage":"","size":14392,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zulip:master","ref":"master","sha":"17f14b7cece668b4570e1c642139d6e9389dffcd","user":{"login":"zulip","id":4921959,"avatar_url":"https://avatars1.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":58298428,"name":"zulip-mobile","full_name":"zulip/zulip-mobile","owner":{"login":"zulip","id":4921959,"avatar_url":"https://avatars1.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-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":"2017-04-24T15:20:08Z","pushed_at":"2017-04-25T14:27:03Z","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":14388,"stargazers_count":55,"watchers_count":55,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"open_issues_count":123,"forks":46,"open_issues":123,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378"},"html":{"href":"https://github.com/zulip/zulip-mobile/pull/378"},"issue":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/378"},"comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/issues/378/comments"},"review_comments":{"href":"https://api.github.com/repos/zulip/zulip-mobile/pulls/378/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/378/commits"},"statuses":{"href":"https://api.github.com/repos/zulip/zulip-mobile/statuses/b7adb5054b0af82ba0fbd10f837791700f39c467"}}}}
{"actor":{"display_login":"borisyankov"}}