mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 18:57:47 +00:00
* feat(prejoin) move invite to toolbar section * feat(premeeting) redesign prejoin and lobby screens * code review changes * fix prejoin flicker and avatar id * fix password error message and native lobby dialog close position
35 lines
722 B
JavaScript
35 lines
722 B
JavaScript
// @flow
|
|
|
|
/**
|
|
* Selector to return lobby state.
|
|
*
|
|
* @param {any} state - State object.
|
|
* @returns {any}
|
|
*/
|
|
export function getLobbyState(state: any) {
|
|
return state['features/lobby'];
|
|
}
|
|
|
|
|
|
/**
|
|
* Selector to return lobby visibility.
|
|
*
|
|
* @param {any} state - State object.
|
|
* @returns {any}
|
|
*/
|
|
export function getIsLobbyVisible(state: any) {
|
|
return state['features/lobby'].lobbyVisible;
|
|
}
|
|
|
|
/**
|
|
* Selector to return array with knocking participant ids.
|
|
*
|
|
* @param {any} state - State object.
|
|
* @returns {Array}
|
|
*/
|
|
export function getKnockingParticipantsById(state: any) {
|
|
const { knockingParticipants } = state['features/lobby'];
|
|
|
|
return knockingParticipants.map(participant => participant.id);
|
|
}
|