snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
56
react/features/recent-list/actions.ts
Normal file
56
react/features/recent-list/actions.ts
Normal file
@@ -0,0 +1,56 @@
|
||||
import {
|
||||
DELETE_RECENT_LIST_ENTRY,
|
||||
_STORE_CURRENT_CONFERENCE,
|
||||
_UPDATE_CONFERENCE_DURATION
|
||||
} from './actionTypes';
|
||||
|
||||
/**
|
||||
* Deletes a recent list entry based on url and date.
|
||||
*
|
||||
* @param {Object} entryId - An object constructed of the url and the date of
|
||||
* the entry for easy identification.
|
||||
* @returns {{
|
||||
* type: DELETE_RECENT_LIST_ENTRY,
|
||||
* entryId: Object
|
||||
* }}
|
||||
*/
|
||||
export function deleteRecentListEntry(entryId: Object) {
|
||||
return {
|
||||
type: DELETE_RECENT_LIST_ENTRY,
|
||||
entryId
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Action to initiate a new addition to the list.
|
||||
*
|
||||
* @param {Object} locationURL - The current location URL.
|
||||
* @protected
|
||||
* @returns {{
|
||||
* type: _STORE_CURRENT_CONFERENCE,
|
||||
* locationURL: Object
|
||||
* }}
|
||||
*/
|
||||
export function _storeCurrentConference(locationURL: Object) {
|
||||
return {
|
||||
type: _STORE_CURRENT_CONFERENCE,
|
||||
locationURL
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Action to initiate the update of the duration of the last conference.
|
||||
*
|
||||
* @param {Object} locationURL - The current location URL.
|
||||
* @protected
|
||||
* @returns {{
|
||||
* type: _UPDATE_CONFERENCE_DURATION,
|
||||
* locationURL: Object
|
||||
* }}
|
||||
*/
|
||||
export function _updateConferenceDuration(locationURL: Object) {
|
||||
return {
|
||||
type: _UPDATE_CONFERENCE_DURATION,
|
||||
locationURL
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user