forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(conference-info-header) Make conference info header configurable. (
- Loading branch information
Showing
13 changed files
with
385 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const CONFERENCE_INFO = { | ||
alwaysVisible: [ 'recording', 'local-recording' ], | ||
autoHide: [ | ||
'subject', | ||
'conference-timer', | ||
'participants-count', | ||
'e2ee', | ||
'transcribing', | ||
'video-quality', | ||
'insecure-room' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// @flow | ||
|
||
import { CONFERENCE_INFO } from './constants'; | ||
|
||
/** | ||
* Retrieves the conference info labels based on config values and defaults. | ||
* | ||
* @param {Object} state - The redux state. | ||
* @returns {Object} The conferenceInfo object. | ||
*/ | ||
export const getConferenceInfo = (state: Object) => { | ||
const { conferenceInfo } = state['features/base/config']; | ||
|
||
if (conferenceInfo) { | ||
return { | ||
alwaysVisible: conferenceInfo.alwaysVisible ?? CONFERENCE_INFO.alwaysVisible, | ||
autoHide: conferenceInfo.autoHide ?? CONFERENCE_INFO.autoHide | ||
}; | ||
} | ||
|
||
return CONFERENCE_INFO; | ||
}; |
Oops, something went wrong.