jiti-meet/react/features/recent-list/actions.js

41 lines
873 B
JavaScript
Raw Normal View History

2018-01-17 11:19:10 +00:00
// @flow
import {
_STORE_CURRENT_CONFERENCE,
_UPDATE_CONFERENCE_DURATION
2018-01-17 11:19:10 +00:00
} from './actionTypes';
/**
* Action to initiate a new addition to the list.
*
* @param {Object} locationURL - The current location URL.
* @protected
2018-01-17 11:19:10 +00:00
* @returns {{
* type: _STORE_CURRENT_CONFERENCE,
2018-01-29 22:20:38 +00:00
* locationURL: Object
2018-01-17 11:19:10 +00:00
* }}
*/
export function _storeCurrentConference(locationURL: Object) {
2018-01-17 11:19:10 +00:00
return {
type: _STORE_CURRENT_CONFERENCE,
2018-01-17 11:19:10 +00:00
locationURL
};
}
/**
* Action to initiate the update of the duration of the last conference.
*
* @param {Object} locationURL - The current location URL.
* @protected
2018-01-17 11:19:10 +00:00
* @returns {{
* type: _UPDATE_CONFERENCE_DURATION,
2018-01-29 22:20:38 +00:00
* locationURL: Object
2018-01-17 11:19:10 +00:00
* }}
*/
export function _updateConferenceDuration(locationURL: Object) {
2018-01-17 11:19:10 +00:00
return {
type: _UPDATE_CONFERENCE_DURATION,
2018-01-17 11:19:10 +00:00
locationURL
};
}