{"action":"created","comment":{"url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/comments/181547816","pull_request_review_id":112203132,"id":181547816,"diff_hunk":"@@ -14,8 +14,9 @@ export const appendMessages = payload => ({\n export const fetchMessages = roomId => async (dispatch, getState) => {\n   const room = getState().messages[roomId];\n   const currentUserId = getState().user._id;\n-  const hasMessages = room && room.messages > 0;\n-  const next = room && room[roomId].next;\n+  const hasMessages = room && room.messages.length > 0;\n+  const next = room && room.next ? room.next : null;","path":"src/store/actions/messagesActions.js","position":7,"original_position":7,"commit_id":"a51453e015c5a91909b0b1949385940225baa739","original_commit_id":"a51453e015c5a91909b0b1949385940225baa739","user":{"login":"maxkoshel","id":3064687,"avatar_url":"https://avatars1.githubusercontent.com/u/3064687?v=4","gravatar_id":"","url":"https://api.github.com/users/maxkoshel","html_url":"https://github.com/maxkoshel","followers_url":"https://api.github.com/users/maxkoshel/followers","following_url":"https://api.github.com/users/maxkoshel/following{/other_user}","gists_url":"https://api.github.com/users/maxkoshel/gists{/gist_id}","starred_url":"https://api.github.com/users/maxkoshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxkoshel/subscriptions","organizations_url":"https://api.github.com/users/maxkoshel/orgs","repos_url":"https://api.github.com/users/maxkoshel/repos","events_url":"https://api.github.com/users/maxkoshel/events{/privacy}","received_events_url":"https://api.github.com/users/maxkoshel/received_events","type":"User","site_admin":false},"body":"можно короче `room && room.next || null`","created_at":"2018-04-14T09:50:15Z","updated_at":"2018-04-14T09:50:15Z","html_url":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56#discussion_r181547816","pull_request_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/comments/181547816"},"html":{"href":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56#discussion_r181547816"},"pull_request":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56","id":181638946,"html_url":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56","diff_url":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56.diff","patch_url":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56.patch","issue_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/56","number":56,"state":"open","locked":false,"title":"Получение сообщений","user":{"login":"synthetiquely","id":27193177,"avatar_url":"https://avatars2.githubusercontent.com/u/27193177?v=4","gravatar_id":"","url":"https://api.github.com/users/synthetiquely","html_url":"https://github.com/synthetiquely","followers_url":"https://api.github.com/users/synthetiquely/followers","following_url":"https://api.github.com/users/synthetiquely/following{/other_user}","gists_url":"https://api.github.com/users/synthetiquely/gists{/gist_id}","starred_url":"https://api.github.com/users/synthetiquely/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/synthetiquely/subscriptions","organizations_url":"https://api.github.com/users/synthetiquely/orgs","repos_url":"https://api.github.com/users/synthetiquely/repos","events_url":"https://api.github.com/users/synthetiquely/events{/privacy}","received_events_url":"https://api.github.com/users/synthetiquely/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-14T09:15:59Z","updated_at":"2018-04-14T09:50:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fa69c005aad286d77f9626ccd2de098d38c5aa8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"mankutila","id":6155438,"avatar_url":"https://avatars1.githubusercontent.com/u/6155438?v=4","gravatar_id":"","url":"https://api.github.com/users/mankutila","html_url":"https://github.com/mankutila","followers_url":"https://api.github.com/users/mankutila/followers","following_url":"https://api.github.com/users/mankutila/following{/other_user}","gists_url":"https://api.github.com/users/mankutila/gists{/gist_id}","starred_url":"https://api.github.com/users/mankutila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mankutila/subscriptions","organizations_url":"https://api.github.com/users/mankutila/orgs","repos_url":"https://api.github.com/users/mankutila/repos","events_url":"https://api.github.com/users/mankutila/events{/privacy}","received_events_url":"https://api.github.com/users/mankutila/received_events","type":"User","site_admin":false},{"login":"Igor-OK","id":11949747,"avatar_url":"https://avatars2.githubusercontent.com/u/11949747?v=4","gravatar_id":"","url":"https://api.github.com/users/Igor-OK","html_url":"https://github.com/Igor-OK","followers_url":"https://api.github.com/users/Igor-OK/followers","following_url":"https://api.github.com/users/Igor-OK/following{/other_user}","gists_url":"https://api.github.com/users/Igor-OK/gists{/gist_id}","starred_url":"https://api.github.com/users/Igor-OK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igor-OK/subscriptions","organizations_url":"https://api.github.com/users/Igor-OK/orgs","repos_url":"https://api.github.com/users/Igor-OK/repos","events_url":"https://api.github.com/users/Igor-OK/events{/privacy}","received_events_url":"https://api.github.com/users/Igor-OK/received_events","type":"User","site_admin":false},{"login":"vladosiv","id":12828609,"avatar_url":"https://avatars2.githubusercontent.com/u/12828609?v=4","gravatar_id":"","url":"https://api.github.com/users/vladosiv","html_url":"https://github.com/vladosiv","followers_url":"https://api.github.com/users/vladosiv/followers","following_url":"https://api.github.com/users/vladosiv/following{/other_user}","gists_url":"https://api.github.com/users/vladosiv/gists{/gist_id}","starred_url":"https://api.github.com/users/vladosiv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladosiv/subscriptions","organizations_url":"https://api.github.com/users/vladosiv/orgs","repos_url":"https://api.github.com/users/vladosiv/repos","events_url":"https://api.github.com/users/vladosiv/events{/privacy}","received_events_url":"https://api.github.com/users/vladosiv/received_events","type":"User","site_admin":false},{"login":"vkrbt","id":18279104,"avatar_url":"https://avatars1.githubusercontent.com/u/18279104?v=4","gravatar_id":"","url":"https://api.github.com/users/vkrbt","html_url":"https://github.com/vkrbt","followers_url":"https://api.github.com/users/vkrbt/followers","following_url":"https://api.github.com/users/vkrbt/following{/other_user}","gists_url":"https://api.github.com/users/vkrbt/gists{/gist_id}","starred_url":"https://api.github.com/users/vkrbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkrbt/subscriptions","organizations_url":"https://api.github.com/users/vkrbt/orgs","repos_url":"https://api.github.com/users/vkrbt/repos","events_url":"https://api.github.com/users/vkrbt/events{/privacy}","received_events_url":"https://api.github.com/users/vkrbt/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56/commits","review_comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56/comments","review_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/56/comments","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/statuses/a51453e015c5a91909b0b1949385940225baa739","head":{"label":"yandex-shri-minsk-2018:receive_messages","ref":"receive_messages","sha":"a51453e015c5a91909b0b1949385940225baa739","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":125608259,"name":"plotva-project","full_name":"yandex-shri-minsk-2018/plotva-project","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/plotva-project","description":"Шевелись, Плотва!","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/deployments","created_at":"2018-03-17T07:54:21Z","updated_at":"2018-04-13T13:58:06Z","pushed_at":"2018-04-14T09:46:17Z","git_url":"git://github.com/yandex-shri-minsk-2018/plotva-project.git","ssh_url":"git@github.com:yandex-shri-minsk-2018/plotva-project.git","clone_url":"https://github.com/yandex-shri-minsk-2018/plotva-project.git","svn_url":"https://github.com/yandex-shri-minsk-2018/plotva-project","homepage":"","size":1252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"yandex-shri-minsk-2018:master","ref":"master","sha":"addd9b38a60abc5558b20f4b185286108161493d","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":125608259,"name":"plotva-project","full_name":"yandex-shri-minsk-2018/plotva-project","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/plotva-project","description":"Шевелись, Плотва!","fork":false,"url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project","forks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/forks","keys_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/teams","hooks_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/hooks","issue_events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/events{/number}","events_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/events","assignees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/assignees{/user}","branches_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/branches{/branch}","tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/tags","blobs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/languages","stargazers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/stargazers","contributors_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/contributors","subscribers_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/subscribers","subscription_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/subscription","commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/contents/{+path}","compare_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/merges","archive_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/downloads","issues_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues{/number}","pulls_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/labels{/name}","releases_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/releases{/id}","deployments_url":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/deployments","created_at":"2018-03-17T07:54:21Z","updated_at":"2018-04-13T13:58:06Z","pushed_at":"2018-04-14T09:46:17Z","git_url":"git://github.com/yandex-shri-minsk-2018/plotva-project.git","ssh_url":"git@github.com:yandex-shri-minsk-2018/plotva-project.git","clone_url":"https://github.com/yandex-shri-minsk-2018/plotva-project.git","svn_url":"https://github.com/yandex-shri-minsk-2018/plotva-project","homepage":"","size":1252,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56"},"html":{"href":"https://github.com/yandex-shri-minsk-2018/plotva-project/pull/56"},"issue":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/56"},"comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/yandex-shri-minsk-2018/plotva-project/statuses/a51453e015c5a91909b0b1949385940225baa739"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"maxkoshel"}}