snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
32
react/features/base/settings/actions.ts
Normal file
32
react/features/base/settings/actions.ts
Normal file
@@ -0,0 +1,32 @@
|
||||
import { SETTINGS_UPDATED } from './actionTypes';
|
||||
import { ISettingsState } from './reducer';
|
||||
|
||||
/**
|
||||
* Create an action for when the settings are updated.
|
||||
*
|
||||
* @param {Object} settings - The new (partial) settings properties.
|
||||
* @returns {{
|
||||
* type: SETTINGS_UPDATED,
|
||||
* settings: {
|
||||
* audioOutputDeviceId: string,
|
||||
* avatarURL: string,
|
||||
* cameraDeviceId: string,
|
||||
* displayName: string,
|
||||
* email: string,
|
||||
* localFlipX: boolean,
|
||||
* micDeviceId: string,
|
||||
* serverURL: string,
|
||||
* soundsReactions: boolean,
|
||||
* startLowBandwidthMode: boolean,
|
||||
* startWithAudioMuted: boolean,
|
||||
* startWithVideoMuted: boolean,
|
||||
* startWithReactionsMuted: boolean
|
||||
* }
|
||||
* }}
|
||||
*/
|
||||
export function updateSettings(settings: Partial<ISettingsState>) {
|
||||
return {
|
||||
type: SETTINGS_UPDATED,
|
||||
settings
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user