mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-05-08 03:33:41 +02:00
d970d210da
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
75 lines
1.5 KiB
JavaScript
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
|
|
};
|
|
}
|