{"action":"closed","number":431,"pull_request":{"url":"https://api.github.com/repos/smooch/smooch-js/pulls/431","id":92905381,"html_url":"https://github.com/smooch/smooch-js/pull/431","diff_url":"https://github.com/smooch/smooch-js/pull/431.diff","patch_url":"https://github.com/smooch/smooch-js/pull/431.patch","issue_url":"https://api.github.com/repos/smooch/smooch-js/issues/431","number":431,"state":"closed","locked":false,"title":"Add support for quick replies","user":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"body":"Soooo, quick replies!\r\n\r\nHere's basically how this works : \r\n- When a message is dispatched to the store, the reducer will extract the quick replies (if present) from it and store them in the store's state. If the message only has quick replies without any text, it's discarded and only the replies are kept.\r\n- From that list of replies, the conversation component figures out if it should show the QuickReplies component or not\r\n- Only the last set of quick replies is shown to the user (hence why I extract them when receiving the message)\r\n- Actions of type `reply` can't be mixed with other action type, so don't worry about it.\r\n\r\n\r\n@mspensieri @jugarrit @dannytranlx @hebime ","created_at":"2016-11-09T04:52:40Z","updated_at":"2016-11-10T17:25:13Z","closed_at":"2016-11-10T17:25:13Z","merged_at":"2016-11-10T17:25:13Z","merge_commit_sha":"1ab132540d10ef740baa7710fb22c6fa4c95fb8e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/smooch/smooch-js/pulls/431/commits","review_comments_url":"https://api.github.com/repos/smooch/smooch-js/pulls/431/comments","review_comment_url":"https://api.github.com/repos/smooch/smooch-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smooch/smooch-js/issues/431/comments","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/fba42faa8f2fd42b878b23336157301c7701354d","head":{"label":"smooch:f/quick-replies","ref":"f/quick-replies","sha":"fba42faa8f2fd42b878b23336157301c7701354d","user":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"repo":{"id":36675403,"name":"smooch-js","full_name":"smooch/smooch-js","owner":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smooch/smooch-js","description":"The Smooch Javascript SDK will add live web messaging to your website or web app.","fork":false,"url":"https://api.github.com/repos/smooch/smooch-js","forks_url":"https://api.github.com/repos/smooch/smooch-js/forks","keys_url":"https://api.github.com/repos/smooch/smooch-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smooch/smooch-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smooch/smooch-js/teams","hooks_url":"https://api.github.com/repos/smooch/smooch-js/hooks","issue_events_url":"https://api.github.com/repos/smooch/smooch-js/issues/events{/number}","events_url":"https://api.github.com/repos/smooch/smooch-js/events","assignees_url":"https://api.github.com/repos/smooch/smooch-js/assignees{/user}","branches_url":"https://api.github.com/repos/smooch/smooch-js/branches{/branch}","tags_url":"https://api.github.com/repos/smooch/smooch-js/tags","blobs_url":"https://api.github.com/repos/smooch/smooch-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smooch/smooch-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smooch/smooch-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/smooch/smooch-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/{sha}","languages_url":"https://api.github.com/repos/smooch/smooch-js/languages","stargazers_url":"https://api.github.com/repos/smooch/smooch-js/stargazers","contributors_url":"https://api.github.com/repos/smooch/smooch-js/contributors","subscribers_url":"https://api.github.com/repos/smooch/smooch-js/subscribers","subscription_url":"https://api.github.com/repos/smooch/smooch-js/subscription","commits_url":"https://api.github.com/repos/smooch/smooch-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/smooch/smooch-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/smooch/smooch-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/smooch/smooch-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/smooch/smooch-js/contents/{+path}","compare_url":"https://api.github.com/repos/smooch/smooch-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smooch/smooch-js/merges","archive_url":"https://api.github.com/repos/smooch/smooch-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smooch/smooch-js/downloads","issues_url":"https://api.github.com/repos/smooch/smooch-js/issues{/number}","pulls_url":"https://api.github.com/repos/smooch/smooch-js/pulls{/number}","milestones_url":"https://api.github.com/repos/smooch/smooch-js/milestones{/number}","notifications_url":"https://api.github.com/repos/smooch/smooch-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smooch/smooch-js/labels{/name}","releases_url":"https://api.github.com/repos/smooch/smooch-js/releases{/id}","deployments_url":"https://api.github.com/repos/smooch/smooch-js/deployments","created_at":"2015-06-01T17:03:32Z","updated_at":"2016-11-03T12:46:28Z","pushed_at":"2016-11-10T17:25:13Z","git_url":"git://github.com/smooch/smooch-js.git","ssh_url":"git@github.com:smooch/smooch-js.git","clone_url":"https://github.com/smooch/smooch-js.git","svn_url":"https://github.com/smooch/smooch-js","homepage":"https://smooch.io/live-web-chat","size":14753,"stargazers_count":99,"watchers_count":99,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":99,"default_branch":"integration"}},"base":{"label":"smooch:integration","ref":"integration","sha":"0351396606ecf8676f9e1f17bedfa5b604e2d61b","user":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"repo":{"id":36675403,"name":"smooch-js","full_name":"smooch/smooch-js","owner":{"login":"smooch","id":14301989,"avatar_url":"https://avatars.githubusercontent.com/u/14301989?v=3","gravatar_id":"","url":"https://api.github.com/users/smooch","html_url":"https://github.com/smooch","followers_url":"https://api.github.com/users/smooch/followers","following_url":"https://api.github.com/users/smooch/following{/other_user}","gists_url":"https://api.github.com/users/smooch/gists{/gist_id}","starred_url":"https://api.github.com/users/smooch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smooch/subscriptions","organizations_url":"https://api.github.com/users/smooch/orgs","repos_url":"https://api.github.com/users/smooch/repos","events_url":"https://api.github.com/users/smooch/events{/privacy}","received_events_url":"https://api.github.com/users/smooch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smooch/smooch-js","description":"The Smooch Javascript SDK will add live web messaging to your website or web app.","fork":false,"url":"https://api.github.com/repos/smooch/smooch-js","forks_url":"https://api.github.com/repos/smooch/smooch-js/forks","keys_url":"https://api.github.com/repos/smooch/smooch-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smooch/smooch-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smooch/smooch-js/teams","hooks_url":"https://api.github.com/repos/smooch/smooch-js/hooks","issue_events_url":"https://api.github.com/repos/smooch/smooch-js/issues/events{/number}","events_url":"https://api.github.com/repos/smooch/smooch-js/events","assignees_url":"https://api.github.com/repos/smooch/smooch-js/assignees{/user}","branches_url":"https://api.github.com/repos/smooch/smooch-js/branches{/branch}","tags_url":"https://api.github.com/repos/smooch/smooch-js/tags","blobs_url":"https://api.github.com/repos/smooch/smooch-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smooch/smooch-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smooch/smooch-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/smooch/smooch-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/{sha}","languages_url":"https://api.github.com/repos/smooch/smooch-js/languages","stargazers_url":"https://api.github.com/repos/smooch/smooch-js/stargazers","contributors_url":"https://api.github.com/repos/smooch/smooch-js/contributors","subscribers_url":"https://api.github.com/repos/smooch/smooch-js/subscribers","subscription_url":"https://api.github.com/repos/smooch/smooch-js/subscription","commits_url":"https://api.github.com/repos/smooch/smooch-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/smooch/smooch-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/smooch/smooch-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/smooch/smooch-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/smooch/smooch-js/contents/{+path}","compare_url":"https://api.github.com/repos/smooch/smooch-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smooch/smooch-js/merges","archive_url":"https://api.github.com/repos/smooch/smooch-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smooch/smooch-js/downloads","issues_url":"https://api.github.com/repos/smooch/smooch-js/issues{/number}","pulls_url":"https://api.github.com/repos/smooch/smooch-js/pulls{/number}","milestones_url":"https://api.github.com/repos/smooch/smooch-js/milestones{/number}","notifications_url":"https://api.github.com/repos/smooch/smooch-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smooch/smooch-js/labels{/name}","releases_url":"https://api.github.com/repos/smooch/smooch-js/releases{/id}","deployments_url":"https://api.github.com/repos/smooch/smooch-js/deployments","created_at":"2015-06-01T17:03:32Z","updated_at":"2016-11-03T12:46:28Z","pushed_at":"2016-11-10T17:25:13Z","git_url":"git://github.com/smooch/smooch-js.git","ssh_url":"git@github.com:smooch/smooch-js.git","clone_url":"https://github.com/smooch/smooch-js.git","svn_url":"https://github.com/smooch/smooch-js","homepage":"https://smooch.io/live-web-chat","size":14753,"stargazers_count":99,"watchers_count":99,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":4,"forks":38,"open_issues":4,"watchers":99,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/431"},"html":{"href":"https://github.com/smooch/smooch-js/pull/431"},"issue":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/431"},"comments":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/431/comments"},"review_comments":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/431/comments"},"review_comment":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/431/commits"},"statuses":{"href":"https://api.github.com/repos/smooch/smooch-js/statuses/fba42faa8f2fd42b878b23336157301c7701354d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"lemieux","id":781844,"avatar_url":"https://avatars.githubusercontent.com/u/781844?v=3","gravatar_id":"","url":"https://api.github.com/users/lemieux","html_url":"https://github.com/lemieux","followers_url":"https://api.github.com/users/lemieux/followers","following_url":"https://api.github.com/users/lemieux/following{/other_user}","gists_url":"https://api.github.com/users/lemieux/gists{/gist_id}","starred_url":"https://api.github.com/users/lemieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lemieux/subscriptions","organizations_url":"https://api.github.com/users/lemieux/orgs","repos_url":"https://api.github.com/users/lemieux/repos","events_url":"https://api.github.com/users/lemieux/events{/privacy}","received_events_url":"https://api.github.com/users/lemieux/received_events","type":"User","site_admin":false},"comments":0,"review_comments":9,"commits":18,"additions":756,"deletions":145,"changed_files":19}}
{"actor":{"display_login":"lemieux"}}