{"action":"created","comment":{"url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/comments/205029573","pull_request_review_id":140217070,"id":205029573,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTAyOTU3Mw==","diff_hunk":"@@ -0,0 +1,82 @@\n+// @flow\n+\n+import { CONFERENCE_ENDED, CONFERENCE_JOINED } from '../conference';\n+\n+import type { RecentListItem } from './types';\n+\n+type State = {\n+    recentList: Array<RecentListItem>;\n+};\n+\n+const DEFAULT_STATE = {\n+    recentList: []\n+};\n+\n+/**\n+ * Reduces redux actions for features/settings.\n+ *\n+ * @param {State} state - Current reduced redux state.\n+ * @param {Object} action - Action which was dispatched.\n+ * @returns {State} - Updated reduced redux state.\n+ */\n+export default (state: State = DEFAULT_STATE, action: Object) => {\n+    switch (action.type) {\n+    case CONFERENCE_ENDED:\n+        return {\n+            ...state,\n+            recentList: _updateEndtimeOfLastConference(state.recentList)\n+        };\n+\n+    case CONFERENCE_JOINED:\n+        return {\n+            ...state,\n+            recentList: _insertConference(state.recentList, action.conference)\n+        };\n+\n+    default:\n+        return state;\n+    }\n+};\n+\n+/**\n+ * Insert Conference details in the recent list array.\n+ *\n+ * @param {Array<RecentListItem>} recentList - Previous recent list array.\n+ * @param {RecentListItem} newConference - Conference that has to be added\n+ * to recent list.\n+ * @returns {Array<RecentListItem>} - Updated recent list array.\n+ */\n+function _insertConference(\n+        recentList: Array<RecentListItem>,\n+        newConference: RecentListItem\n+) {\n+\n+    // Add start time to conference.\n+    newConference.startTime = Date.now();\n+\n+    // Remove same conference.\n+    // $FlowFixMe\n+    const newRecentList = recentList.filter(\n+        (conference: RecentListItem) => conference.room !== newConference.room\n+            || conference.serverURL !== newConference.serverURL);\n+\n+    // Add the conference at the beginning.\n+    newRecentList.unshift(newConference);\n+\n+    return newRecentList;\n+}\n+\n+/**\n+ * Update the EndTime of the last conference.\n+ *\n+ * @param {Array<RecentListItem>} recentList - Previous recent list array.\n+ * @returns {Array<RecentListItem>} - Updated recent list array.\n+ */\n+function _updateEndtimeOfLastConference(recentList: Array<RecentListItem>) {\n+","path":"app/features/recent-list/reducer.js","position":76,"original_position":76,"commit_id":"bb2521a2f2c481e7ddae35c4401e913ba8bd5e05","original_commit_id":"bb2521a2f2c481e7ddae35c4401e913ba8bd5e05","user":{"login":"akshitkrnagpal","id":15872348,"node_id":"MDQ6VXNlcjE1ODcyMzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/15872348?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitkrnagpal","html_url":"https://github.com/akshitkrnagpal","followers_url":"https://api.github.com/users/akshitkrnagpal/followers","following_url":"https://api.github.com/users/akshitkrnagpal/following{/other_user}","gists_url":"https://api.github.com/users/akshitkrnagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitkrnagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitkrnagpal/subscriptions","organizations_url":"https://api.github.com/users/akshitkrnagpal/orgs","repos_url":"https://api.github.com/users/akshitkrnagpal/repos","events_url":"https://api.github.com/users/akshitkrnagpal/events{/privacy}","received_events_url":"https://api.github.com/users/akshitkrnagpal/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2018-07-25T08:50:36Z","updated_at":"2018-07-25T08:50:36Z","html_url":"https://github.com/jitsi/jitsi-meet-electron/pull/97#discussion_r205029573","pull_request_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/comments/205029573"},"html":{"href":"https://github.com/jitsi/jitsi-meet-electron/pull/97#discussion_r205029573"},"pull_request":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97"}},"in_reply_to_id":205017126},"pull_request":{"url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97","id":203008721,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzMDA4NzIx","html_url":"https://github.com/jitsi/jitsi-meet-electron/pull/97","diff_url":"https://github.com/jitsi/jitsi-meet-electron/pull/97.diff","patch_url":"https://github.com/jitsi/jitsi-meet-electron/pull/97.patch","issue_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/97","number":97,"state":"open","locked":false,"title":"WIP Added recent list feature","user":{"login":"akshitkrnagpal","id":15872348,"node_id":"MDQ6VXNlcjE1ODcyMzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/15872348?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitkrnagpal","html_url":"https://github.com/akshitkrnagpal","followers_url":"https://api.github.com/users/akshitkrnagpal/followers","following_url":"https://api.github.com/users/akshitkrnagpal/following{/other_user}","gists_url":"https://api.github.com/users/akshitkrnagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitkrnagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitkrnagpal/subscriptions","organizations_url":"https://api.github.com/users/akshitkrnagpal/orgs","repos_url":"https://api.github.com/users/akshitkrnagpal/repos","events_url":"https://api.github.com/users/akshitkrnagpal/events{/privacy}","received_events_url":"https://api.github.com/users/akshitkrnagpal/received_events","type":"User","site_admin":false},"body":"Resolves #49.\r\n\r\nTODO\r\n- [x] Convert all `px` to `em`\r\n- [x] Make changes in grid. (Ongoing)\r\n- [x] Create actions `CONFERENCE_JOINED` and `CONFERENCE_ENDED` and use middleware.\r\n- [x] Declare type Conference.\r\n- [x] Format Date/Time and duration. (using Moment.js)\r\n- [x] Hide Server URL protocol in cards\r\n- [ ] Persist recent list in redux.","created_at":"2018-07-21T12:54:20Z","updated_at":"2018-07-25T08:50:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ccfaa7dbaefbae22a6ac46f238645eacdaa8d9b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97/commits","review_comments_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97/comments","review_comment_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/97/comments","statuses_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/statuses/bb2521a2f2c481e7ddae35c4401e913ba8bd5e05","head":{"label":"akshitkrnagpal:rl","ref":"rl","sha":"bb2521a2f2c481e7ddae35c4401e913ba8bd5e05","user":{"login":"akshitkrnagpal","id":15872348,"node_id":"MDQ6VXNlcjE1ODcyMzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/15872348?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitkrnagpal","html_url":"https://github.com/akshitkrnagpal","followers_url":"https://api.github.com/users/akshitkrnagpal/followers","following_url":"https://api.github.com/users/akshitkrnagpal/following{/other_user}","gists_url":"https://api.github.com/users/akshitkrnagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitkrnagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitkrnagpal/subscriptions","organizations_url":"https://api.github.com/users/akshitkrnagpal/orgs","repos_url":"https://api.github.com/users/akshitkrnagpal/repos","events_url":"https://api.github.com/users/akshitkrnagpal/events{/privacy}","received_events_url":"https://api.github.com/users/akshitkrnagpal/received_events","type":"User","site_admin":false},"repo":{"id":125969628,"node_id":"MDEwOlJlcG9zaXRvcnkxMjU5Njk2Mjg=","name":"jitsi-meet-electron","full_name":"akshitkrnagpal/jitsi-meet-electron","owner":{"login":"akshitkrnagpal","id":15872348,"node_id":"MDQ6VXNlcjE1ODcyMzQ4","avatar_url":"https://avatars3.githubusercontent.com/u/15872348?v=4","gravatar_id":"","url":"https://api.github.com/users/akshitkrnagpal","html_url":"https://github.com/akshitkrnagpal","followers_url":"https://api.github.com/users/akshitkrnagpal/followers","following_url":"https://api.github.com/users/akshitkrnagpal/following{/other_user}","gists_url":"https://api.github.com/users/akshitkrnagpal/gists{/gist_id}","starred_url":"https://api.github.com/users/akshitkrnagpal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akshitkrnagpal/subscriptions","organizations_url":"https://api.github.com/users/akshitkrnagpal/orgs","repos_url":"https://api.github.com/users/akshitkrnagpal/repos","events_url":"https://api.github.com/users/akshitkrnagpal/events{/privacy}","received_events_url":"https://api.github.com/users/akshitkrnagpal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akshitkrnagpal/jitsi-meet-electron","description":"An Electron wrapper for jitsi-meet","fork":true,"url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron","forks_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/forks","keys_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/teams","hooks_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/hooks","issue_events_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/issues/events{/number}","events_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/events","assignees_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/assignees{/user}","branches_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/branches{/branch}","tags_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/tags","blobs_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/languages","stargazers_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/stargazers","contributors_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/contributors","subscribers_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/subscribers","subscription_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/subscription","commits_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/contents/{+path}","compare_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/merges","archive_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/downloads","issues_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/issues{/number}","pulls_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/labels{/name}","releases_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/releases{/id}","deployments_url":"https://api.github.com/repos/akshitkrnagpal/jitsi-meet-electron/deployments","created_at":"2018-03-20T06:14:13Z","updated_at":"2018-07-20T15:56:24Z","pushed_at":"2018-07-25T07:14:08Z","git_url":"git://github.com/akshitkrnagpal/jitsi-meet-electron.git","ssh_url":"git@github.com:akshitkrnagpal/jitsi-meet-electron.git","clone_url":"https://github.com/akshitkrnagpal/jitsi-meet-electron.git","svn_url":"https://github.com/akshitkrnagpal/jitsi-meet-electron","homepage":"","size":819,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jitsi:master","ref":"master","sha":"cfd2e5382671d11dde2df667a914ca73056834e7","user":{"login":"jitsi","id":3671647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzE2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/3671647?v=4","gravatar_id":"","url":"https://api.github.com/users/jitsi","html_url":"https://github.com/jitsi","followers_url":"https://api.github.com/users/jitsi/followers","following_url":"https://api.github.com/users/jitsi/following{/other_user}","gists_url":"https://api.github.com/users/jitsi/gists{/gist_id}","starred_url":"https://api.github.com/users/jitsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitsi/subscriptions","organizations_url":"https://api.github.com/users/jitsi/orgs","repos_url":"https://api.github.com/users/jitsi/repos","events_url":"https://api.github.com/users/jitsi/events{/privacy}","received_events_url":"https://api.github.com/users/jitsi/received_events","type":"Organization","site_admin":false},"repo":{"id":76293911,"node_id":"MDEwOlJlcG9zaXRvcnk3NjI5MzkxMQ==","name":"jitsi-meet-electron","full_name":"jitsi/jitsi-meet-electron","owner":{"login":"jitsi","id":3671647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NzE2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/3671647?v=4","gravatar_id":"","url":"https://api.github.com/users/jitsi","html_url":"https://github.com/jitsi","followers_url":"https://api.github.com/users/jitsi/followers","following_url":"https://api.github.com/users/jitsi/following{/other_user}","gists_url":"https://api.github.com/users/jitsi/gists{/gist_id}","starred_url":"https://api.github.com/users/jitsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jitsi/subscriptions","organizations_url":"https://api.github.com/users/jitsi/orgs","repos_url":"https://api.github.com/users/jitsi/repos","events_url":"https://api.github.com/users/jitsi/events{/privacy}","received_events_url":"https://api.github.com/users/jitsi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jitsi/jitsi-meet-electron","description":"Jitsi Meet desktop application using Electron","fork":false,"url":"https://api.github.com/repos/jitsi/jitsi-meet-electron","forks_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/forks","keys_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/teams","hooks_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/hooks","issue_events_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/events{/number}","events_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/events","assignees_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/assignees{/user}","branches_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/branches{/branch}","tags_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/tags","blobs_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/statuses/{sha}","languages_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/languages","stargazers_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/stargazers","contributors_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/contributors","subscribers_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/subscribers","subscription_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/subscription","commits_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/contents/{+path}","compare_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/merges","archive_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/downloads","issues_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues{/number}","pulls_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls{/number}","milestones_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/milestones{/number}","notifications_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/labels{/name}","releases_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/releases{/id}","deployments_url":"https://api.github.com/repos/jitsi/jitsi-meet-electron/deployments","created_at":"2016-12-12T20:43:14Z","updated_at":"2018-07-20T15:53:01Z","pushed_at":"2018-07-25T07:14:10Z","git_url":"git://github.com/jitsi/jitsi-meet-electron.git","ssh_url":"git@github.com:jitsi/jitsi-meet-electron.git","clone_url":"https://github.com/jitsi/jitsi-meet-electron.git","svn_url":"https://github.com/jitsi/jitsi-meet-electron","homepage":"","size":757,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":13,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97"},"html":{"href":"https://github.com/jitsi/jitsi-meet-electron/pull/97"},"issue":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/97"},"comments":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/jitsi/jitsi-meet-electron/statuses/bb2521a2f2c481e7ddae35c4401e913ba8bd5e05"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"akshitkrnagpal"}}