jitsi-meet-electron/app/features/settings/actions.js
Christoph Settgast d970d210da
feat: force prejoin page instead of profile and av settings (#690)
The settings and the prejoin page which is forced on many instances
including meet.jit.si did conflict, as you could set values in the
settings, then try to override them in den prejoin page only to notice
that it would not work. Clean this up by only having the prejoin page
where all settings can be done before joining the conference.

Closes: #687
2021-12-21 07:34:16 +01:00

75 lines
1.5 KiB
JavaScript

// @flow
import {
SET_ALWAYS_ON_TOP_WINDOW_ENABLED,
SET_DISABLE_AGC,
SET_SERVER_URL,
SET_SERVER_TIMEOUT
} from './actionTypes';
import { normalizeServerURL } from '../utils';
/**
* Set Server URL.
*
* @param {string} serverURL - Server URL.
* @returns {{
* type: SET_SERVER_URL,
* serverURL: ?string
* }}
*/
export function setServerURL(serverURL: string) {
return {
type: SET_SERVER_URL,
serverURL: normalizeServerURL(serverURL)
};
}
/**
* Set Server Timeout.
*
* @param {string} serverTimeout - Server Timeout.
* @returns {{
* type: SET_SERVER_TIMEOUT,
* serverTimeout: ?number
* }}
*/
export function setServerTimeout(serverTimeout: number) {
return {
type: SET_SERVER_TIMEOUT,
serverTimeout
};
}
/**
* Set disable AGC.
*
* @param {boolean} disableAGC - Whether to disable AGC.
* @returns {{
* type: SET_DISABLE_AGC,
* disableAGC: boolean
* }}
*/
export function setDisableAGC(disableAGC: boolean) {
return {
type: SET_DISABLE_AGC,
disableAGC
};
}
/**
* Set window always on top.
*
* @param {boolean} alwaysOnTopWindowEnabled - Whether to set AlwaysOnTop Window Enabled.
* @returns {{
* type: SET_ALWAYS_ON_TOP_WINDOW_ENABLED,
* alwaysOnTopWindowEnabled: boolean
* }}
*/
export function setWindowAlwaysOnTop(alwaysOnTopWindowEnabled: boolean) {
return {
type: SET_ALWAYS_ON_TOP_WINDOW_ENABLED,
alwaysOnTopWindowEnabled
};
}