{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/emission/pulls/comments/138180829","pull_request_review_id":61944030,"id":138180829,"diff_hunk":"@@ -100,6 +100,8 @@ export class Conversation extends React.Component<Props, State> {\n     return (\n       <Message\n         message={item}\n+        firstMessage={item.first_message}","path":"src/lib/Containers/Conversation.tsx","position":4,"original_position":4,"commit_id":"bf8b1fd9a372d8a69d02ba58ea942abe076cf2d8","original_commit_id":"bf8b1fd9a372d8a69d02ba58ea942abe076cf2d8","user":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"body":"the parent component is the one that 'knows' whether a message is the initial one or not, as well as its own initial text, so it passes them as props to the message component (used above)","created_at":"2017-09-11T20:24:03Z","updated_at":"2017-09-11T20:24:03Z","html_url":"https://github.com/artsy/emission/pull/748#discussion_r138180829","pull_request_url":"https://api.github.com/repos/artsy/emission/pulls/748","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/artsy/emission/pulls/comments/138180829"},"html":{"href":"https://github.com/artsy/emission/pull/748#discussion_r138180829"},"pull_request":{"href":"https://api.github.com/repos/artsy/emission/pulls/748"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/emission/pulls/748","id":140426658,"html_url":"https://github.com/artsy/emission/pull/748","diff_url":"https://github.com/artsy/emission/pull/748.diff","patch_url":"https://github.com/artsy/emission/pull/748.patch","issue_url":"https://api.github.com/repos/artsy/emission/issues/748","number":748,"state":"open","locked":false,"title":"@ashkan18 => [Messaging] Better rendering of message text","user":{"login":"mzikherman","id":1457859,"avatar_url":"https://avatars2.githubusercontent.com/u/1457859?v=4","gravatar_id":"","url":"https://api.github.com/users/mzikherman","html_url":"https://github.com/mzikherman","followers_url":"https://api.github.com/users/mzikherman/followers","following_url":"https://api.github.com/users/mzikherman/following{/other_user}","gists_url":"https://api.github.com/users/mzikherman/gists{/gist_id}","starred_url":"https://api.github.com/users/mzikherman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mzikherman/subscriptions","organizations_url":"https://api.github.com/users/mzikherman/orgs","repos_url":"https://api.github.com/users/mzikherman/repos","events_url":"https://api.github.com/users/mzikherman/events{/privacy}","received_events_url":"https://api.github.com/users/mzikherman/received_events","type":"User","site_admin":false},"body":"This is 'blind' as it uses all the in-progress PR's, but the end result is that everything renders the same (:+1:) as it should, due to all the fallbacks 😅 \r\n\r\nThis renders the conversation's `initial_message`, which is _just_ the user-submitted content, for the first message in a thread. That first message is 'special' in that we're already rendering it differently- including previews of the conversation item in question.\r\n\r\nFor the other messages, they are just rendering `body`, which has been updated in https://github.com/artsy/metaphysics/pull/733 to use the user-submitted text where possible.\r\n\r\nPretty simple!\r\n\r\nThis will fix our issues around sanitizing our own messages (like invoice requests, the initial messages, etc.), which basically completes the 'message sanitization' showstopper- those were the last types of messages to sanitize.","created_at":"2017-09-11T20:22:35Z","updated_at":"2017-09-11T20:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc3d25e577c83043645d31029060c386b0c7a4bc","assignee":{"login":"ashkan18","id":1230819,"avatar_url":"https://avatars0.githubusercontent.com/u/1230819?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false},"assignees":[{"login":"ashkan18","id":1230819,"avatar_url":"https://avatars0.githubusercontent.com/u/1230819?v=4","gravatar_id":"","url":"https://api.github.com/users/ashkan18","html_url":"https://github.com/ashkan18","followers_url":"https://api.github.com/users/ashkan18/followers","following_url":"https://api.github.com/users/ashkan18/following{/other_user}","gists_url":"https://api.github.com/users/ashkan18/gists{/gist_id}","starred_url":"https://api.github.com/users/ashkan18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashkan18/subscriptions","organizations_url":"https://api.github.com/users/ashkan18/orgs","repos_url":"https://api.github.com/users/ashkan18/repos","events_url":"https://api.github.com/users/ashkan18/events{/privacy}","received_events_url":"https://api.github.com/users/ashkan18/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/artsy/emission/pulls/748/commits","review_comments_url":"https://api.github.com/repos/artsy/emission/pulls/748/comments","review_comment_url":"https://api.github.com/repos/artsy/emission/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/emission/issues/748/comments","statuses_url":"https://api.github.com/repos/artsy/emission/statuses/bf8b1fd9a372d8a69d02ba58ea942abe076cf2d8","head":{"label":"artsy:better_message_body","ref":"better_message_body","sha":"bf8b1fd9a372d8a69d02ba58ea942abe076cf2d8","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":52437732,"name":"emission","full_name":"artsy/emission","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/emission","description":"React Native Components","fork":false,"url":"https://api.github.com/repos/artsy/emission","forks_url":"https://api.github.com/repos/artsy/emission/forks","keys_url":"https://api.github.com/repos/artsy/emission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/emission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/emission/teams","hooks_url":"https://api.github.com/repos/artsy/emission/hooks","issue_events_url":"https://api.github.com/repos/artsy/emission/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/emission/events","assignees_url":"https://api.github.com/repos/artsy/emission/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/emission/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/emission/tags","blobs_url":"https://api.github.com/repos/artsy/emission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/emission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/emission/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/emission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/emission/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/emission/languages","stargazers_url":"https://api.github.com/repos/artsy/emission/stargazers","contributors_url":"https://api.github.com/repos/artsy/emission/contributors","subscribers_url":"https://api.github.com/repos/artsy/emission/subscribers","subscription_url":"https://api.github.com/repos/artsy/emission/subscription","commits_url":"https://api.github.com/repos/artsy/emission/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/emission/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/emission/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/emission/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/emission/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/emission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/emission/merges","archive_url":"https://api.github.com/repos/artsy/emission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/emission/downloads","issues_url":"https://api.github.com/repos/artsy/emission/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/emission/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/emission/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/emission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/emission/labels{/name}","releases_url":"https://api.github.com/repos/artsy/emission/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/emission/deployments","created_at":"2016-02-24T11:36:24Z","updated_at":"2017-09-10T07:45:35Z","pushed_at":"2017-09-11T20:22:36Z","git_url":"git://github.com/artsy/emission.git","ssh_url":"git@github.com:artsy/emission.git","clone_url":"https://github.com/artsy/emission.git","svn_url":"https://github.com/artsy/emission","homepage":null,"size":13479,"stargazers_count":265,"watchers_count":265,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":63,"forks":31,"open_issues":63,"watchers":265,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"b079cce7c1e0ad8219f276b60cbaec19f9fc0be5","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":52437732,"name":"emission","full_name":"artsy/emission","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars3.githubusercontent.com/u/546231?v=4","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/emission","description":"React Native Components","fork":false,"url":"https://api.github.com/repos/artsy/emission","forks_url":"https://api.github.com/repos/artsy/emission/forks","keys_url":"https://api.github.com/repos/artsy/emission/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/emission/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/emission/teams","hooks_url":"https://api.github.com/repos/artsy/emission/hooks","issue_events_url":"https://api.github.com/repos/artsy/emission/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/emission/events","assignees_url":"https://api.github.com/repos/artsy/emission/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/emission/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/emission/tags","blobs_url":"https://api.github.com/repos/artsy/emission/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/emission/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/emission/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/emission/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/emission/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/emission/languages","stargazers_url":"https://api.github.com/repos/artsy/emission/stargazers","contributors_url":"https://api.github.com/repos/artsy/emission/contributors","subscribers_url":"https://api.github.com/repos/artsy/emission/subscribers","subscription_url":"https://api.github.com/repos/artsy/emission/subscription","commits_url":"https://api.github.com/repos/artsy/emission/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/emission/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/emission/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/emission/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/emission/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/emission/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/emission/merges","archive_url":"https://api.github.com/repos/artsy/emission/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/emission/downloads","issues_url":"https://api.github.com/repos/artsy/emission/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/emission/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/emission/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/emission/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/emission/labels{/name}","releases_url":"https://api.github.com/repos/artsy/emission/releases{/id}","deployments_url":"https://api.github.com/repos/artsy/emission/deployments","created_at":"2016-02-24T11:36:24Z","updated_at":"2017-09-10T07:45:35Z","pushed_at":"2017-09-11T20:22:36Z","git_url":"git://github.com/artsy/emission.git","ssh_url":"git@github.com:artsy/emission.git","clone_url":"https://github.com/artsy/emission.git","svn_url":"https://github.com/artsy/emission","homepage":null,"size":13479,"stargazers_count":265,"watchers_count":265,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":63,"forks":31,"open_issues":63,"watchers":265,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/emission/pulls/748"},"html":{"href":"https://github.com/artsy/emission/pull/748"},"issue":{"href":"https://api.github.com/repos/artsy/emission/issues/748"},"comments":{"href":"https://api.github.com/repos/artsy/emission/issues/748/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/emission/pulls/748/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/emission/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/emission/pulls/748/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/emission/statuses/bf8b1fd9a372d8a69d02ba58ea942abe076cf2d8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mzikherman"}}