{"action":"created","comment":{"url":"https://api.github.com/repos/smooch/smooch-js/pulls/comments/72294889","id":72294889,"diff_hunk":"@@ -33,3 +33,15 @@ export function updateTwilioAttributes(attr) {\n export function resetTwilioAttributes() {\n     store.dispatch(resetTwilioIntegrationState());\n }\n+\n+export function fetchTwilioAttributes() {","path":"src/js/services/integrations-service.js","position":5,"original_position":5,"commit_id":"e186240e297ffab1636346a9f127a65d2cc40e58","original_commit_id":"e186240e297ffab1636346a9f127a65d2cc40e58","user":{"login":"jugarrit","id":12450961,"avatar_url":"https://avatars.githubusercontent.com/u/12450961?v=3","gravatar_id":"","url":"https://api.github.com/users/jugarrit","html_url":"https://github.com/jugarrit","followers_url":"https://api.github.com/users/jugarrit/followers","following_url":"https://api.github.com/users/jugarrit/following{/other_user}","gists_url":"https://api.github.com/users/jugarrit/gists{/gist_id}","starred_url":"https://api.github.com/users/jugarrit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jugarrit/subscriptions","organizations_url":"https://api.github.com/users/jugarrit/orgs","repos_url":"https://api.github.com/users/jugarrit/repos","events_url":"https://api.github.com/users/jugarrit/events{/privacy}","received_events_url":"https://api.github.com/users/jugarrit/received_events","type":"User","site_admin":false},"body":"May want to add the case for pending in here.\r\n\r\n`const pendingClient = pendingClients.find((client) => client.platform === 'twilio');`","created_at":"2016-07-26T17:15:53Z","updated_at":"2016-07-26T17:15:53Z","html_url":"https://github.com/smooch/smooch-js/pull/328#discussion_r72294889","pull_request_url":"https://api.github.com/repos/smooch/smooch-js/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/comments/72294889"},"html":{"href":"https://github.com/smooch/smooch-js/pull/328#discussion_r72294889"},"pull_request":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/smooch/smooch-js/pulls/328","id":78879301,"html_url":"https://github.com/smooch/smooch-js/pull/328","diff_url":"https://github.com/smooch/smooch-js/pull/328.diff","patch_url":"https://github.com/smooch/smooch-js/pull/328.patch","issue_url":"https://api.github.com/repos/smooch/smooch-js/issues/328","number":328,"state":"open","locked":false,"title":"Update Twilio integration state with user information","user":{"login":"chloepouprom","id":4314491,"avatar_url":"https://avatars.githubusercontent.com/u/4314491?v=3","gravatar_id":"","url":"https://api.github.com/users/chloepouprom","html_url":"https://github.com/chloepouprom","followers_url":"https://api.github.com/users/chloepouprom/followers","following_url":"https://api.github.com/users/chloepouprom/following{/other_user}","gists_url":"https://api.github.com/users/chloepouprom/gists{/gist_id}","starred_url":"https://api.github.com/users/chloepouprom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloepouprom/subscriptions","organizations_url":"https://api.github.com/users/chloepouprom/orgs","repos_url":"https://api.github.com/users/chloepouprom/repos","events_url":"https://api.github.com/users/chloepouprom/events{/privacy}","received_events_url":"https://api.github.com/users/chloepouprom/received_events","type":"User","site_admin":false},"body":"The state is now updated with the correct Twilio-related information. That way, if the user already has SMS linking enabled, the right view will be displayed.\r\n\r\nI also added a few frontend tests!\r\n\r\n@jugarrit @liyefei737 @lemieux @Mario54 @mspensieri ","created_at":"2016-07-26T16:03:52Z","updated_at":"2016-07-26T17:15:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ad6306018d0e0aa98bb5059735fc86ee122e1a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/smooch/smooch-js/pulls/328/commits","review_comments_url":"https://api.github.com/repos/smooch/smooch-js/pulls/328/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/328/comments","statuses_url":"https://api.github.com/repos/smooch/smooch-js/statuses/e186240e297ffab1636346a9f127a65d2cc40e58","head":{"label":"smooch:f/sms-linking-init","ref":"f/sms-linking-init","sha":"e186240e297ffab1636346a9f127a65d2cc40e58","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-07-20T12:21:15Z","pushed_at":"2016-07-26T16:09:53Z","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":13573,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":2,"forks":32,"open_issues":2,"watchers":80,"default_branch":"integration"}},"base":{"label":"smooch:f/sms-linking","ref":"f/sms-linking","sha":"ee9c7bce5d0fafb3414b8d39f0dbf4914fc067fd","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-07-20T12:21:15Z","pushed_at":"2016-07-26T16:09:53Z","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":13573,"stargazers_count":80,"watchers_count":80,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":2,"forks":32,"open_issues":2,"watchers":80,"default_branch":"integration"}},"_links":{"self":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/328"},"html":{"href":"https://github.com/smooch/smooch-js/pull/328"},"issue":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/328"},"comments":{"href":"https://api.github.com/repos/smooch/smooch-js/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/smooch/smooch-js/pulls/328/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/328/commits"},"statuses":{"href":"https://api.github.com/repos/smooch/smooch-js/statuses/e186240e297ffab1636346a9f127a65d2cc40e58"}}}}
{"actor":{"display_login":"jugarrit"}}