snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
33
react/features/recent-list/functions.web.ts
Normal file
33
react/features/recent-list/functions.web.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
import { parseURIString, safeDecodeURIComponent } from '../base/util/uri';
|
||||
|
||||
|
||||
/**
|
||||
* Transforms the history list to a displayable list.
|
||||
*
|
||||
* @private
|
||||
* @param {Array<Object>} recentList - The recent list form the redux store.
|
||||
* @returns {Array<Object>}
|
||||
*/
|
||||
export function toDisplayableList(recentList: Array<{ conference: string; date: Date; duration: number; }>) {
|
||||
return (
|
||||
[ ...recentList ].reverse()
|
||||
.map(item => {
|
||||
return {
|
||||
date: item.date,
|
||||
duration: item.duration,
|
||||
time: [ item.date ],
|
||||
title: safeDecodeURIComponent(parseURIString(item.conference).room),
|
||||
url: item.conference
|
||||
};
|
||||
}));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <tt>true</tt> if recent list is enabled and <tt>false</tt> otherwise.
|
||||
*
|
||||
* @returns {boolean} <tt>true</tt> if recent list is enabled and <tt>false</tt>
|
||||
* otherwise.
|
||||
*/
|
||||
export function isRecentListEnabled() {
|
||||
return interfaceConfig.RECENT_LIST_ENABLED;
|
||||
}
|
||||
Reference in New Issue
Block a user