{"action":"created","comment":{"url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/comments/181061412","pull_request_review_id":111596449,"id":181061412,"diff_hunk":"@@ -0,0 +1,58 @@\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+\n+import { connect } from 'react-redux';\n+import { fetchMessages, sendMessage } from '../actions/chat';\n+\n+import Chat from '../components/Chat/Chat';\n+\n+class ChatFields extends Component {\n+  constructor(props) {\n+    super(props);\n+\n+    this.fetchMessages = this.props.fetchMessages.bind(this);\n+    this.sendMessage = this.props.sendMessage.bind(this);\n+  }\n+\n+  componentWillMount() {\n+    this.fetchMessages(this.props.roomId);","path":"src/containers/ChatFields.jsx","position":18,"original_position":18,"commit_id":"5f043759cffc5f3921d065b05fed68fd6d1962a7","original_commit_id":"5f043759cffc5f3921d065b05fed68fd6d1962a7","user":{"login":"surrenderboy","id":12209038,"avatar_url":"https://avatars3.githubusercontent.com/u/12209038?v=4","gravatar_id":"","url":"https://api.github.com/users/surrenderboy","html_url":"https://github.com/surrenderboy","followers_url":"https://api.github.com/users/surrenderboy/followers","following_url":"https://api.github.com/users/surrenderboy/following{/other_user}","gists_url":"https://api.github.com/users/surrenderboy/gists{/gist_id}","starred_url":"https://api.github.com/users/surrenderboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surrenderboy/subscriptions","organizations_url":"https://api.github.com/users/surrenderboy/orgs","repos_url":"https://api.github.com/users/surrenderboy/repos","events_url":"https://api.github.com/users/surrenderboy/events{/privacy}","received_events_url":"https://api.github.com/users/surrenderboy/received_events","type":"User","site_admin":false},"body":"вызов таких функций лучше писать в componentDidMount","created_at":"2018-04-12T12:24:31Z","updated_at":"2018-04-12T12:29:40Z","html_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93#discussion_r181061412","pull_request_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/comments/181061412"},"html":{"href":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93#discussion_r181061412"},"pull_request":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93","id":181174293,"html_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93","diff_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93.diff","patch_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93.patch","issue_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/93","number":93,"state":"open","locked":false,"title":"Контейнеры для чата. Изменение actions и reducers","user":{"login":"ikononov94","id":22147511,"avatar_url":"https://avatars3.githubusercontent.com/u/22147511?v=4","gravatar_id":"","url":"https://api.github.com/users/ikononov94","html_url":"https://github.com/ikononov94","followers_url":"https://api.github.com/users/ikononov94/followers","following_url":"https://api.github.com/users/ikononov94/following{/other_user}","gists_url":"https://api.github.com/users/ikononov94/gists{/gist_id}","starred_url":"https://api.github.com/users/ikononov94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikononov94/subscriptions","organizations_url":"https://api.github.com/users/ikononov94/orgs","repos_url":"https://api.github.com/users/ikononov94/repos","events_url":"https://api.github.com/users/ikononov94/events{/privacy}","received_events_url":"https://api.github.com/users/ikononov94/received_events","type":"User","site_admin":false},"body":"* Изменены actions и reducers для чата\r\n* Сообщение после отправки добавляется в конец массива в `state`, а не перерендеривается вся комната\r\n* Спиннер при загрузке сообщений\r\n* В сообщениях указано время отправки, Поправлены переносы строк, добавлена максимальная ширина сообщения\r\n* Название чата отображается в комнате\r\n* Scroll вниз при загрузке комнаты и отправке сообщений\r\n* Лимит сообщений изменен на 500","created_at":"2018-04-12T11:39:06Z","updated_at":"2018-04-12T12:29:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8f7b7fc5983a7b67576ec47c07e2a1b6ab2ad9b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93/commits","review_comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93/comments","review_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/93/comments","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/statuses/5f043759cffc5f3921d065b05fed68fd6d1962a7","head":{"label":"yandex-shri-minsk-2018:Chat-fix","ref":"Chat-fix","sha":"5f043759cffc5f3921d065b05fed68fd6d1962a7","user":{"login":"yandex-shri-minsk-2018","id":35258389,"avatar_url":"https://avatars0.githubusercontent.com/u/35258389?v=4","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2018","html_url":"https://github.com/yandex-shri-minsk-2018","followers_url":"https://api.github.com/users/yandex-shri-minsk-2018/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2018/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2018/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2018/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2018/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2018/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":125611171,"name":"deo-iuvante","full_name":"yandex-shri-minsk-2018/deo-iuvante","owner":{"login":"yandex-shri-minsk-2018","id":35258389,"avatar_url":"https://avatars0.githubusercontent.com/u/35258389?v=4","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2018","html_url":"https://github.com/yandex-shri-minsk-2018","followers_url":"https://api.github.com/users/yandex-shri-minsk-2018/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2018/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2018/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2018/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2018/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2018/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante","description":"With God's help (Storybook: https://yandex-shri-minsk-2018.github.io/deo-iuvante)","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/deployments","created_at":"2018-03-17T08:40:20Z","updated_at":"2018-04-10T19:43:07Z","pushed_at":"2018-04-12T11:45:23Z","git_url":"git://github.com/yandex-shri-minsk-2018/deo-iuvante.git","ssh_url":"git@github.com:yandex-shri-minsk-2018/deo-iuvante.git","clone_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante.git","svn_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante","homepage":"https://deo-iuvante.herokuapp.com","size":2151,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"base":{"label":"yandex-shri-minsk-2018:master","ref":"master","sha":"1d24d3b96543dc3729140cf0f507658ebd8b604b","user":{"login":"yandex-shri-minsk-2018","id":35258389,"avatar_url":"https://avatars0.githubusercontent.com/u/35258389?v=4","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2018","html_url":"https://github.com/yandex-shri-minsk-2018","followers_url":"https://api.github.com/users/yandex-shri-minsk-2018/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2018/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2018/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2018/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2018/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2018/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2018/received_events","type":"Organization","site_admin":false},"repo":{"id":125611171,"name":"deo-iuvante","full_name":"yandex-shri-minsk-2018/deo-iuvante","owner":{"login":"yandex-shri-minsk-2018","id":35258389,"avatar_url":"https://avatars0.githubusercontent.com/u/35258389?v=4","gravatar_id":"","url":"https://api.github.com/users/yandex-shri-minsk-2018","html_url":"https://github.com/yandex-shri-minsk-2018","followers_url":"https://api.github.com/users/yandex-shri-minsk-2018/followers","following_url":"https://api.github.com/users/yandex-shri-minsk-2018/following{/other_user}","gists_url":"https://api.github.com/users/yandex-shri-minsk-2018/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex-shri-minsk-2018/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex-shri-minsk-2018/subscriptions","organizations_url":"https://api.github.com/users/yandex-shri-minsk-2018/orgs","repos_url":"https://api.github.com/users/yandex-shri-minsk-2018/repos","events_url":"https://api.github.com/users/yandex-shri-minsk-2018/events{/privacy}","received_events_url":"https://api.github.com/users/yandex-shri-minsk-2018/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante","description":"With God's help (Storybook: https://yandex-shri-minsk-2018.github.io/deo-iuvante)","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/deployments","created_at":"2018-03-17T08:40:20Z","updated_at":"2018-04-10T19:43:07Z","pushed_at":"2018-04-12T11:45:23Z","git_url":"git://github.com/yandex-shri-minsk-2018/deo-iuvante.git","ssh_url":"git@github.com:yandex-shri-minsk-2018/deo-iuvante.git","clone_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante.git","svn_url":"https://github.com/yandex-shri-minsk-2018/deo-iuvante","homepage":"https://deo-iuvante.herokuapp.com","size":2151,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":17,"license":null,"forks":0,"open_issues":17,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93"},"html":{"href":"https://github.com/yandex-shri-minsk-2018/deo-iuvante/pull/93"},"issue":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/93"},"comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/deo-iuvante/statuses/5f043759cffc5f3921d065b05fed68fd6d1962a7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"surrenderboy"}}