chore: use strings as action types

Using anything non-serializable for action types is discouraged:
https://redux.js.org/faq/actions#actions

In fact, this is the Flow definition for dispatching actions:

declare export type DispatchAPI<A> = (action: A) => A;
declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;

Note how the `type` field is defined as a subtype of string, which Symbol isn’t.
This commit is contained in:
Saúl Ibarra Corretgé 2019-03-19 13:34:05 +01:00
parent 75527e01dd
commit 0e92e73789
54 changed files with 190 additions and 214 deletions

View File

@ -6,7 +6,7 @@
* type: CANCEL_LOGIN
* }
*/
export const CANCEL_LOGIN = Symbol('CANCEL_LOGIN');
export const CANCEL_LOGIN = 'CANCEL_LOGIN';
/**
* The type of (redux) action which signals that the cyclic operation of waiting
@ -16,7 +16,7 @@ export const CANCEL_LOGIN = Symbol('CANCEL_LOGIN');
* type: STOP_WAIT_FOR_OWNER
* }
*/
export const STOP_WAIT_FOR_OWNER = Symbol('STOP_WAIT_FOR_OWNER');
export const STOP_WAIT_FOR_OWNER = 'STOP_WAIT_FOR_OWNER';
/**
* The type of (redux) action which informs that the authentication and role
@ -33,7 +33,7 @@ export const STOP_WAIT_FOR_OWNER = Symbol('STOP_WAIT_FOR_OWNER');
* thenableWithCancel: Object
* }
*/
export const UPGRADE_ROLE_FINISHED = Symbol('UPGRADE_ROLE_FINISHED');
export const UPGRADE_ROLE_FINISHED = 'UPGRADE_ROLE_FINISHED';
/**
* The type of (redux) action which signals that the process of authenticating
@ -44,7 +44,7 @@ export const UPGRADE_ROLE_FINISHED = Symbol('UPGRADE_ROLE_FINISHED');
* thenableWithCancel: Object
* }
*/
export const UPGRADE_ROLE_STARTED = Symbol('UPGRADE_ROLE_STARTED');
export const UPGRADE_ROLE_STARTED = 'UPGRADE_ROLE_STARTED';
/**
* The type of (redux) action that sets delayed handler which will check if
@ -57,4 +57,4 @@ export const UPGRADE_ROLE_STARTED = Symbol('UPGRADE_ROLE_STARTED');
* timeoutMs: number
* }
*/
export const WAIT_FOR_OWNER = Symbol('WAIT_FOR_OWNER');
export const WAIT_FOR_OWNER = 'WAIT_FOR_OWNER';

View File

@ -7,7 +7,7 @@
* app: App
* }
*/
export const APP_WILL_MOUNT = Symbol('APP_WILL_MOUNT');
export const APP_WILL_MOUNT = 'APP_WILL_MOUNT';
/**
* The type of (redux) action which signals that a specific App will unmount (in
@ -18,4 +18,4 @@ export const APP_WILL_MOUNT = Symbol('APP_WILL_MOUNT');
* app: App
* }
*/
export const APP_WILL_UNMOUNT = Symbol('APP_WILL_UNMOUNT');
export const APP_WILL_UNMOUNT = 'APP_WILL_UNMOUNT';

View File

@ -8,4 +8,4 @@
* colorScheme: Object
* }
*/
export const SET_COLOR_SCHEME = Symbol('SET_COLOR_SCHEME');
export const SET_COLOR_SCHEME = 'SET_COLOR_SCHEME';

View File

@ -8,7 +8,7 @@
* authLogin: string
* }
*/
export const AUTH_STATUS_CHANGED = Symbol('AUTH_STATUS_CHANGED');
export const AUTH_STATUS_CHANGED = 'AUTH_STATUS_CHANGED';
/**
* The type of (redux) action which signals that a specific conference failed.
@ -19,7 +19,7 @@ export const AUTH_STATUS_CHANGED = Symbol('AUTH_STATUS_CHANGED');
* error: Error
* }
*/
export const CONFERENCE_FAILED = Symbol('CONFERENCE_FAILED');
export const CONFERENCE_FAILED = 'CONFERENCE_FAILED';
/**
* The type of (redux) action which signals that a specific conference was
@ -30,7 +30,7 @@ export const CONFERENCE_FAILED = Symbol('CONFERENCE_FAILED');
* conference: JitsiConference
* }
*/
export const CONFERENCE_JOINED = Symbol('CONFERENCE_JOINED');
export const CONFERENCE_JOINED = 'CONFERENCE_JOINED';
/**
* The type of (redux) action which signals that a specific conference was left.
@ -40,7 +40,7 @@ export const CONFERENCE_JOINED = Symbol('CONFERENCE_JOINED');
* conference: JitsiConference
* }
*/
export const CONFERENCE_LEFT = Symbol('CONFERENCE_LEFT');
export const CONFERENCE_LEFT = 'CONFERENCE_LEFT';
/**
* The type of (redux) action, which indicates conference subject changes.
@ -50,7 +50,7 @@ export const CONFERENCE_LEFT = Symbol('CONFERENCE_LEFT');
* subject: string
* }
*/
export const CONFERENCE_SUBJECT_CHANGED = Symbol('CONFERENCE_SUBJECT_CHANGED');
export const CONFERENCE_SUBJECT_CHANGED = 'CONFERENCE_SUBJECT_CHANGED';
/**
* The type of (redux) action which signals that a specific conference will be
@ -61,7 +61,7 @@ export const CONFERENCE_SUBJECT_CHANGED = Symbol('CONFERENCE_SUBJECT_CHANGED');
* conference: JitsiConference
* }
*/
export const CONFERENCE_WILL_JOIN = Symbol('CONFERENCE_WILL_JOIN');
export const CONFERENCE_WILL_JOIN = 'CONFERENCE_WILL_JOIN';
/**
* The type of (redux) action which signals that a specific conference will be
@ -72,7 +72,7 @@ export const CONFERENCE_WILL_JOIN = Symbol('CONFERENCE_WILL_JOIN');
* conference: JitsiConference
* }
*/
export const CONFERENCE_WILL_LEAVE = Symbol('CONFERENCE_WILL_LEAVE');
export const CONFERENCE_WILL_LEAVE = 'CONFERENCE_WILL_LEAVE';
/**
* The type of (redux) action which signals that the data channel with the
@ -82,7 +82,7 @@ export const CONFERENCE_WILL_LEAVE = Symbol('CONFERENCE_WILL_LEAVE');
* type: DATA_CHANNEL_OPENED
* }
*/
export const DATA_CHANNEL_OPENED = Symbol('DATA_CHANNEL_OPENED');
export const DATA_CHANNEL_OPENED = 'DATA_CHANNEL_OPENED';
/**
* The type of action which signals that the user has been kicked out from
@ -93,7 +93,7 @@ export const DATA_CHANNEL_OPENED = Symbol('DATA_CHANNEL_OPENED');
* conference: JitsiConference
* }
*/
export const KICKED_OUT = Symbol('KICKED_OUT');
export const KICKED_OUT = 'KICKED_OUT';
/**
* The type of (redux) action which signals that the lock state of a specific
@ -105,7 +105,7 @@ export const KICKED_OUT = Symbol('KICKED_OUT');
* locked: boolean
* }
*/
export const LOCK_STATE_CHANGED = Symbol('LOCK_STATE_CHANGED');
export const LOCK_STATE_CHANGED = 'LOCK_STATE_CHANGED';
/**
* The type of (redux) action which sets the peer2peer flag for the current
@ -116,7 +116,7 @@ export const LOCK_STATE_CHANGED = Symbol('LOCK_STATE_CHANGED');
* p2p: boolean
* }
*/
export const P2P_STATUS_CHANGED = Symbol('P2P_STATUS_CHANGED');
export const P2P_STATUS_CHANGED = 'P2P_STATUS_CHANGED';
/**
* The type of (redux) action which sets the audio-only flag for the current
@ -127,7 +127,7 @@ export const P2P_STATUS_CHANGED = Symbol('P2P_STATUS_CHANGED');
* audioOnly: boolean
* }
*/
export const SET_AUDIO_ONLY = Symbol('SET_AUDIO_ONLY');
export const SET_AUDIO_ONLY = 'SET_AUDIO_ONLY';
/**
* The type of (redux) action which sets the desktop sharing enabled flag for
@ -139,7 +139,7 @@ export const SET_AUDIO_ONLY = Symbol('SET_AUDIO_ONLY');
* }
*/
export const SET_DESKTOP_SHARING_ENABLED
= Symbol('SET_DESKTOP_SHARING_ENABLED');
= 'SET_DESKTOP_SHARING_ENABLED';
/**
* The type of (redux) action which updates the current known status of the
@ -150,7 +150,7 @@ export const SET_DESKTOP_SHARING_ENABLED
* enabled: boolean
* }
*/
export const SET_FOLLOW_ME = Symbol('SET_FOLLOW_ME');
export const SET_FOLLOW_ME = 'SET_FOLLOW_ME';
/**
* The type of (redux) action which sets the video channel's lastN (value).
@ -160,7 +160,7 @@ export const SET_FOLLOW_ME = Symbol('SET_FOLLOW_ME');
* lastN: number
* }
*/
export const SET_LASTN = Symbol('SET_LASTN');
export const SET_LASTN = 'SET_LASTN';
/**
* The type of (redux) action which sets the maximum video height that should be
@ -173,7 +173,7 @@ export const SET_LASTN = Symbol('SET_LASTN');
* }
*/
export const SET_MAX_RECEIVER_VIDEO_QUALITY
= Symbol('SET_MAX_RECEIVER_VIDEO_QUALITY');
= 'SET_MAX_RECEIVER_VIDEO_QUALITY';
/**
* The type of (redux) action which sets the password to join or lock a specific
@ -186,7 +186,7 @@ export const SET_MAX_RECEIVER_VIDEO_QUALITY
* password: string
* }
*/
export const SET_PASSWORD = Symbol('SET_PASSWORD');
export const SET_PASSWORD = 'SET_PASSWORD';
/**
* The type of (redux) action which signals that setting a password on a
@ -197,7 +197,7 @@ export const SET_PASSWORD = Symbol('SET_PASSWORD');
* error: string
* }
*/
export const SET_PASSWORD_FAILED = Symbol('SET_PASSWORD_FAILED');
export const SET_PASSWORD_FAILED = 'SET_PASSWORD_FAILED';
/**
* The type of (redux) action which signals for pending subject changes.
@ -207,7 +207,7 @@ export const SET_PASSWORD_FAILED = Symbol('SET_PASSWORD_FAILED');
* subject: string
* }
*/
export const SET_PENDING_SUBJECT_CHANGE = Symbol('SET_PENDING_SUBJECT_CHANGE');
export const SET_PENDING_SUBJECT_CHANGE = 'SET_PENDING_SUBJECT_CHANGE';
/**
* The type of (redux) action which sets the preferred maximum video height that
@ -219,7 +219,7 @@ export const SET_PENDING_SUBJECT_CHANGE = Symbol('SET_PENDING_SUBJECT_CHANGE');
* }
*/
export const SET_PREFERRED_RECEIVER_VIDEO_QUALITY
= Symbol('SET_PREFERRED_RECEIVER_VIDEO_QUALITY');
= 'SET_PREFERRED_RECEIVER_VIDEO_QUALITY';
/**
* The type of (redux) action which sets the name of the room of the
@ -230,7 +230,7 @@ export const SET_PREFERRED_RECEIVER_VIDEO_QUALITY
* room: string
* }
*/
export const SET_ROOM = Symbol('SET_ROOM');
export const SET_ROOM = 'SET_ROOM';
/**
* The type of (redux) action, which indicates if a SIP gateway is enabled on
@ -241,7 +241,7 @@ export const SET_ROOM = Symbol('SET_ROOM');
* isSIPGatewayEnabled: boolean
* }
*/
export const SET_SIP_GATEWAY_ENABLED = Symbol('SET_SIP_GATEWAY_ENABLED');
export const SET_SIP_GATEWAY_ENABLED = 'SET_SIP_GATEWAY_ENABLED';
/**
* The type of (redux) action which updates the current known status of the
@ -253,4 +253,4 @@ export const SET_SIP_GATEWAY_ENABLED = Symbol('SET_SIP_GATEWAY_ENABLED');
* startVideoMutedPolicy: boolean
* }
*/
export const SET_START_MUTED_POLICY = Symbol('SET_START_MUTED_POLICY');
export const SET_START_MUTED_POLICY = 'SET_START_MUTED_POLICY';

View File

@ -7,7 +7,7 @@
* locationURL: URL
* }
*/
export const CONFIG_WILL_LOAD = Symbol('CONFIG_WILL_LOAD');
export const CONFIG_WILL_LOAD = 'CONFIG_WILL_LOAD';
/**
* The redux action which signals that a configuration (commonly known in Jitsi
@ -19,7 +19,7 @@ export const CONFIG_WILL_LOAD = Symbol('CONFIG_WILL_LOAD');
* locationURL: URL
* }
*/
export const LOAD_CONFIG_ERROR = Symbol('LOAD_CONFIG_ERROR');
export const LOAD_CONFIG_ERROR = 'LOAD_CONFIG_ERROR';
/**
* The redux action which sets the configuration represented by the feature
@ -32,4 +32,4 @@ export const LOAD_CONFIG_ERROR = Symbol('LOAD_CONFIG_ERROR');
* config: Object
* }
*/
export const SET_CONFIG = Symbol('SET_CONFIG');
export const SET_CONFIG = 'SET_CONFIG';

View File

@ -7,7 +7,7 @@
* message: string
* }
*/
export const CONNECTION_DISCONNECTED = Symbol('CONNECTION_DISCONNECTED');
export const CONNECTION_DISCONNECTED = 'CONNECTION_DISCONNECTED';
/**
* The type of (redux) action which signals that a connection was successfully
@ -19,7 +19,7 @@ export const CONNECTION_DISCONNECTED = Symbol('CONNECTION_DISCONNECTED');
* timeEstablished: number,
* }
*/
export const CONNECTION_ESTABLISHED = Symbol('CONNECTION_ESTABLISHED');
export const CONNECTION_ESTABLISHED = 'CONNECTION_ESTABLISHED';
/**
* The type of (redux) action which signals that a connection failed.
@ -30,7 +30,7 @@ export const CONNECTION_ESTABLISHED = Symbol('CONNECTION_ESTABLISHED');
* error: Object | string
* }
*/
export const CONNECTION_FAILED = Symbol('CONNECTION_FAILED');
export const CONNECTION_FAILED = 'CONNECTION_FAILED';
/**
* The type of (redux) action which signals that a connection will connect.
@ -40,7 +40,7 @@ export const CONNECTION_FAILED = Symbol('CONNECTION_FAILED');
* connection: JitsiConnection
* }
*/
export const CONNECTION_WILL_CONNECT = Symbol('CONNECTION_WILL_CONNECT');
export const CONNECTION_WILL_CONNECT = 'CONNECTION_WILL_CONNECT';
/**
* The type of (redux) action which sets the location URL of the application,
@ -51,4 +51,4 @@ export const CONNECTION_WILL_CONNECT = Symbol('CONNECTION_WILL_CONNECT');
* locationURL: ?URL
* }
*/
export const SET_LOCATION_URL = Symbol('SET_LOCATION_URL');
export const SET_LOCATION_URL = 'SET_LOCATION_URL';

View File

@ -7,7 +7,7 @@
* deviceId: string,
* }
*/
export const SET_AUDIO_INPUT_DEVICE = Symbol('SET_AUDIO_INPUT_DEVICE');
export const SET_AUDIO_INPUT_DEVICE = 'SET_AUDIO_INPUT_DEVICE';
/**
* The type of Redux action which signals that the currently used video
@ -18,7 +18,7 @@ export const SET_AUDIO_INPUT_DEVICE = Symbol('SET_AUDIO_INPUT_DEVICE');
* deviceId: string,
* }
*/
export const SET_VIDEO_INPUT_DEVICE = Symbol('SET_VIDEO_INPUT_DEVICE');
export const SET_VIDEO_INPUT_DEVICE = 'SET_VIDEO_INPUT_DEVICE';
/**
* The type of Redux action which signals that the list of known available
@ -29,4 +29,4 @@ export const SET_VIDEO_INPUT_DEVICE = Symbol('SET_VIDEO_INPUT_DEVICE');
* devices: Array<MediaDeviceInfo>,
* }
*/
export const UPDATE_DEVICE_LIST = Symbol('UPDATE_DEVICE_LIST');
export const UPDATE_DEVICE_LIST = 'UPDATE_DEVICE_LIST';

View File

@ -5,7 +5,7 @@
* type: HIDE_DIALOG
* }
*/
export const HIDE_DIALOG = Symbol('HIDE_DIALOG');
export const HIDE_DIALOG = 'HIDE_DIALOG';
/**
* The type of Redux action which begins a request to open a dialog.
@ -17,4 +17,4 @@ export const HIDE_DIALOG = Symbol('HIDE_DIALOG');
* }
*
*/
export const OPEN_DIALOG = Symbol('OPEN_DIALOG');
export const OPEN_DIALOG = 'OPEN_DIALOG';

View File

@ -7,4 +7,4 @@
* jwt: string
* }
*/
export const SET_JWT = Symbol('SET_JWT');
export const SET_JWT = 'SET_JWT';

View File

@ -9,4 +9,4 @@
* knownDomains: Array<string>
* }
*/
export const ADD_KNOWN_DOMAINS = Symbol('ADD_KNOWN_DOMAINS');
export const ADD_KNOWN_DOMAINS = 'ADD_KNOWN_DOMAINS';

View File

@ -5,7 +5,7 @@
* type: LIB_DID_DISPOSE
* }
*/
export const LIB_DID_DISPOSE = Symbol('LIB_DID_DISPOSE');
export const LIB_DID_DISPOSE = 'LIB_DID_DISPOSE';
/**
* The type of Redux action which signals that {@link JitsiMeetJS.init()} was
@ -15,7 +15,7 @@ export const LIB_DID_DISPOSE = Symbol('LIB_DID_DISPOSE');
* type: LIB_DID_INIT
* }
*/
export const LIB_DID_INIT = Symbol('LIB_DID_INIT');
export const LIB_DID_INIT = 'LIB_DID_INIT';
/**
* Action to signal that lib-jitsi-meet initialized failed with error.
@ -25,7 +25,7 @@ export const LIB_DID_INIT = Symbol('LIB_DID_INIT');
* error: Error
* }
*/
export const LIB_INIT_ERROR = Symbol('LIB_INIT_ERROR');
export const LIB_INIT_ERROR = 'LIB_INIT_ERROR';
/**
* The type of Redux action which signals that {@link JitsiMeetJS} will be
@ -35,7 +35,7 @@ export const LIB_INIT_ERROR = Symbol('LIB_INIT_ERROR');
* type: LIB_WILL_DISPOSE
* }
*/
export const LIB_WILL_DISPOSE = Symbol('LIB_WILL_DISPOSE');
export const LIB_WILL_DISPOSE = 'LIB_WILL_DISPOSE';
/**
* The type of Redux action which signals that {@link JitsiMeetJS.init()} will
@ -45,4 +45,4 @@ export const LIB_WILL_DISPOSE = Symbol('LIB_WILL_DISPOSE');
* type: LIB_WILL_INIT
* }
*/
export const LIB_WILL_INIT = Symbol('LIB_WILL_INIT');
export const LIB_WILL_INIT = 'LIB_WILL_INIT';

View File

@ -7,7 +7,7 @@
* logCollector: Logger.LogCollector
* }
*/
export const SET_LOG_COLLECTOR = Symbol('SET_LOG_COLLECTOR');
export const SET_LOG_COLLECTOR = 'SET_LOG_COLLECTOR';
/**
* The type of redux action which sets the configuration of the feature
@ -18,4 +18,4 @@ export const SET_LOG_COLLECTOR = Symbol('SET_LOG_COLLECTOR');
* config: Object
* }
*/
export const SET_LOGGING_CONFIG = Symbol('SET_LOGGING_CONFIG');
export const SET_LOGGING_CONFIG = 'SET_LOGGING_CONFIG';

View File

@ -6,7 +6,7 @@
* muted: boolean
* }
*/
export const SET_AUDIO_MUTED = Symbol('SET_AUDIO_MUTED');
export const SET_AUDIO_MUTED = 'SET_AUDIO_MUTED';
/**
* The type of (redux) action to adjust the availability of the local audio.
@ -16,7 +16,7 @@ export const SET_AUDIO_MUTED = Symbol('SET_AUDIO_MUTED');
* muted: boolean
* }
*/
export const SET_AUDIO_AVAILABLE = Symbol('SET_AUDIO_AVAILABLE');
export const SET_AUDIO_AVAILABLE = 'SET_AUDIO_AVAILABLE';
/**
* The type of (redux) action to set the facing mode of the local video camera
@ -27,7 +27,7 @@ export const SET_AUDIO_AVAILABLE = Symbol('SET_AUDIO_AVAILABLE');
* cameraFacingMode: CAMERA_FACING_MODE
* }
*/
export const SET_CAMERA_FACING_MODE = Symbol('SET_CAMERA_FACING_MODE');
export const SET_CAMERA_FACING_MODE = 'SET_CAMERA_FACING_MODE';
/**
* The type of (redux) action to adjust the availability of the local video.
@ -37,7 +37,7 @@ export const SET_CAMERA_FACING_MODE = Symbol('SET_CAMERA_FACING_MODE');
* available: boolean
* }
*/
export const SET_VIDEO_AVAILABLE = Symbol('SET_VIDEO_AVAILABLE');
export const SET_VIDEO_AVAILABLE = 'SET_VIDEO_AVAILABLE';
/**
* The type of (redux) action to set the muted state of the local video.
@ -47,7 +47,7 @@ export const SET_VIDEO_AVAILABLE = Symbol('SET_VIDEO_AVAILABLE');
* muted: boolean
* }
*/
export const SET_VIDEO_MUTED = Symbol('SET_VIDEO_MUTED');
export const SET_VIDEO_MUTED = 'SET_VIDEO_MUTED';
/**
* The type of (redux) action to store the last video {@link Transform} applied
@ -59,7 +59,7 @@ export const SET_VIDEO_MUTED = Symbol('SET_VIDEO_MUTED');
* transform: Transform
* }
*/
export const STORE_VIDEO_TRANSFORM = Symbol('STORE_VIDEO_TRANSFORM');
export const STORE_VIDEO_TRANSFORM = 'STORE_VIDEO_TRANSFORM';
/**
* The type of (redux) action to toggle the local video camera facing mode. In
@ -71,4 +71,4 @@ export const STORE_VIDEO_TRANSFORM = Symbol('STORE_VIDEO_TRANSFORM');
* type: TOGGLE_CAMERA_FACING_MODE
* }
*/
export const TOGGLE_CAMERA_FACING_MODE = Symbol('TOGGLE_CAMERA_FACING_MODE');
export const TOGGLE_CAMERA_FACING_MODE = 'TOGGLE_CAMERA_FACING_MODE';

View File

@ -8,7 +8,7 @@
* }
* }
*/
export const DOMINANT_SPEAKER_CHANGED = Symbol('DOMINANT_SPEAKER_CHANGED');
export const DOMINANT_SPEAKER_CHANGED = 'DOMINANT_SPEAKER_CHANGED';
/**
* Create an action for removing a participant from the conference.
@ -18,7 +18,7 @@ export const DOMINANT_SPEAKER_CHANGED = Symbol('DOMINANT_SPEAKER_CHANGED');
* id: string
* }
*/
export const KICK_PARTICIPANT = Symbol('KICK_PARTICIPANT');
export const KICK_PARTICIPANT = 'KICK_PARTICIPANT';
/**
* Create an action for muting a remote participant.
@ -28,7 +28,7 @@ export const KICK_PARTICIPANT = Symbol('KICK_PARTICIPANT');
* id: string
* }
*/
export const MUTE_REMOTE_PARTICIPANT = Symbol('MUTE_REMOTE_PARTICIPANT');
export const MUTE_REMOTE_PARTICIPANT = 'MUTE_REMOTE_PARTICIPANT';
/**
* Create an action for when the local participant's display name is updated.
@ -40,7 +40,7 @@ export const MUTE_REMOTE_PARTICIPANT = Symbol('MUTE_REMOTE_PARTICIPANT');
* }
*/
export const PARTICIPANT_DISPLAY_NAME_CHANGED
= Symbol('PARTICIPANT_DISPLAY_NAME_CHANGED');
= 'PARTICIPANT_DISPLAY_NAME_CHANGED';
/**
* Action to signal that ID of participant has changed. This happens when
@ -53,7 +53,7 @@ export const PARTICIPANT_DISPLAY_NAME_CHANGED
* oldValue: string
* }
*/
export const PARTICIPANT_ID_CHANGED = Symbol('PARTICIPANT_ID_CHANGED');
export const PARTICIPANT_ID_CHANGED = 'PARTICIPANT_ID_CHANGED';
/**
* Action to signal that a participant has joined.
@ -63,7 +63,7 @@ export const PARTICIPANT_ID_CHANGED = Symbol('PARTICIPANT_ID_CHANGED');
* participant: Participant
* }
*/
export const PARTICIPANT_JOINED = Symbol('PARTICIPANT_JOINED');
export const PARTICIPANT_JOINED = 'PARTICIPANT_JOINED';
/**
* Action to handle case when participant lefts.
@ -75,7 +75,7 @@ export const PARTICIPANT_JOINED = Symbol('PARTICIPANT_JOINED');
* }
* }
*/
export const PARTICIPANT_LEFT = Symbol('PARTICIPANT_LEFT');
export const PARTICIPANT_LEFT = 'PARTICIPANT_LEFT';
/**
* Action to handle case when info about participant changes.
@ -85,7 +85,7 @@ export const PARTICIPANT_LEFT = Symbol('PARTICIPANT_LEFT');
* participant: Participant
* }
*/
export const PARTICIPANT_UPDATED = Symbol('PARTICIPANT_UPDATED');
export const PARTICIPANT_UPDATED = 'PARTICIPANT_UPDATED';
/**
* The type of the Redux action which pins a conference participant.
@ -97,7 +97,7 @@ export const PARTICIPANT_UPDATED = Symbol('PARTICIPANT_UPDATED');
* }
* }
*/
export const PIN_PARTICIPANT = Symbol('PIN_PARTICIPANT');
export const PIN_PARTICIPANT = 'PIN_PARTICIPANT';
/**
* Action to signal that a hidden participant has joined.
@ -107,7 +107,7 @@ export const PIN_PARTICIPANT = Symbol('PIN_PARTICIPANT');
* participant: Participant
* }
*/
export const HIDDEN_PARTICIPANT_JOINED = Symbol('HIDDEN_PARTICIPANT_JOINED');
export const HIDDEN_PARTICIPANT_JOINED = 'HIDDEN_PARTICIPANT_JOINED';
/**
* Action to handle case when hidden participant leaves.
@ -119,4 +119,4 @@ export const HIDDEN_PARTICIPANT_JOINED = Symbol('HIDDEN_PARTICIPANT_JOINED');
* }
* }
*/
export const HIDDEN_PARTICIPANT_LEFT = Symbol('HIDDEN_PARTICIPANT_LEFT');
export const HIDDEN_PARTICIPANT_LEFT = 'HIDDEN_PARTICIPANT_LEFT';

View File

@ -7,7 +7,7 @@
* aspectRatio: Symbol
* }
*/
export const SET_ASPECT_RATIO = Symbol('SET_ASPECT_RATIO');
export const SET_ASPECT_RATIO = 'SET_ASPECT_RATIO';
/**
* The type of redux action which signals that the reduces UI mode was enabled
@ -20,4 +20,4 @@ export const SET_ASPECT_RATIO = Symbol('SET_ASPECT_RATIO');
*
* @public
*/
export const SET_REDUCED_UI = Symbol('SET_REDUCED_UI');
export const SET_REDUCED_UI = 'SET_REDUCED_UI';

View File

@ -19,4 +19,4 @@
* }
* }
*/
export const SETTINGS_UPDATED = Symbol('SETTINGS_UPDATED');
export const SETTINGS_UPDATED = 'SETTINGS_UPDATED';

View File

@ -8,7 +8,7 @@
* soundId: string
* }
*/
export const _ADD_AUDIO_ELEMENT = Symbol('_ADD_AUDIO_ELEMENT');
export const _ADD_AUDIO_ELEMENT = '_ADD_AUDIO_ELEMENT';
/**
* The type of feature/internal/protected (redux) action to remove an audio
@ -19,7 +19,7 @@ export const _ADD_AUDIO_ELEMENT = Symbol('_ADD_AUDIO_ELEMENT');
* soundId: string
* }
*/
export const _REMOVE_AUDIO_ELEMENT = Symbol('_REMOVE_AUDIO_ELEMENT');
export const _REMOVE_AUDIO_ELEMENT = '_REMOVE_AUDIO_ELEMENT';
/**
* The type of (redux) action to play a sound from the sounds collection.
@ -29,7 +29,7 @@ export const _REMOVE_AUDIO_ELEMENT = Symbol('_REMOVE_AUDIO_ELEMENT');
* soundId: string
* }
*/
export const PLAY_SOUND = Symbol('PLAY_SOUND');
export const PLAY_SOUND = 'PLAY_SOUND';
/**
* The type of (redux) action to register a new sound with the sounds
@ -40,7 +40,7 @@ export const PLAY_SOUND = Symbol('PLAY_SOUND');
* soundId: string
* }
*/
export const REGISTER_SOUND = Symbol('REGISTER_SOUND');
export const REGISTER_SOUND = 'REGISTER_SOUND';
/**
* The type of (redux) action to stop a sound from the sounds collection.
@ -50,7 +50,7 @@ export const REGISTER_SOUND = Symbol('REGISTER_SOUND');
* soundId: string
* }
*/
export const STOP_SOUND = Symbol('STOP_SOUND');
export const STOP_SOUND = 'STOP_SOUND';
/**
* The type of (redux) action to unregister an existing sound from the sounds
@ -61,4 +61,4 @@ export const STOP_SOUND = Symbol('STOP_SOUND');
* soundId: string
* }
*/
export const UNREGISTER_SOUND = Symbol('UNREGISTER_SOUND');
export const UNREGISTER_SOUND = 'UNREGISTER_SOUND';

View File

@ -6,4 +6,4 @@
* type: SET_CONNECTION_STATE
* }
*/
export const SET_CONNECTION_STATE = Symbol('SET_CONNECTION_STATE');
export const SET_CONNECTION_STATE = 'SET_CONNECTION_STATE';

View File

@ -6,7 +6,7 @@
* type: TOGGLE_SCREENSHARING
* }
*/
export const TOGGLE_SCREENSHARING = Symbol('TOGGLE_SCREENSHARING');
export const TOGGLE_SCREENSHARING = 'TOGGLE_SCREENSHARING';
/**
* The type of redux action dispatched when a track has been (locally or
@ -17,7 +17,7 @@ export const TOGGLE_SCREENSHARING = Symbol('TOGGLE_SCREENSHARING');
* track: Track
* }
*/
export const TRACK_ADDED = Symbol('TRACK_ADDED');
export const TRACK_ADDED = 'TRACK_ADDED';
/**
* The type of redux action dispatched when a canceled {@code getUserMedia}
@ -29,7 +29,7 @@ export const TRACK_ADDED = Symbol('TRACK_ADDED');
* trackType: MEDIA_TYPE
* }
*/
export const TRACK_CREATE_CANCELED = Symbol('TRACK_CREATE_CANCELED');
export const TRACK_CREATE_CANCELED = 'TRACK_CREATE_CANCELED';
/**
* The type of redux action dispatched when {@code getUserMedia} fails with an
@ -41,7 +41,7 @@ export const TRACK_CREATE_CANCELED = Symbol('TRACK_CREATE_CANCELED');
* trackType: MEDIA_TYPE
* }
*/
export const TRACK_CREATE_ERROR = Symbol('TRACK_CREATE_ERROR');
export const TRACK_CREATE_ERROR = 'TRACK_CREATE_ERROR';
/**
* The type of redux action dispatched when a track has been (locally or
@ -52,7 +52,7 @@ export const TRACK_CREATE_ERROR = Symbol('TRACK_CREATE_ERROR');
* track: Track
* }
*/
export const TRACK_REMOVED = Symbol('TRACK_REMOVED');
export const TRACK_REMOVED = 'TRACK_REMOVED';
/**
* The type of redux action dispatched when a track's properties were updated.
@ -62,7 +62,7 @@ export const TRACK_REMOVED = Symbol('TRACK_REMOVED');
* track: Track
* }
*/
export const TRACK_UPDATED = Symbol('TRACK_UPDATED');
export const TRACK_UPDATED = 'TRACK_UPDATED';
/**
* The type of redux action dispatched when a local track starts being created
@ -82,4 +82,4 @@ export const TRACK_UPDATED = Symbol('TRACK_UPDATED');
* }
* }
*/
export const TRACK_WILL_CREATE = Symbol('TRACK_WILL_CREATE');
export const TRACK_WILL_CREATE = 'TRACK_WILL_CREATE';

View File

@ -21,29 +21,6 @@ export function getJitsiMeetGlobalNS() {
return window.JitsiMeetJS.app;
}
/**
* Gets the description of a specific {@code Symbol}.
*
* @param {Symbol} symbol - The {@code Symbol} to retrieve the description of.
* @private
* @returns {string} The description of {@code symbol}.
*/
export function getSymbolDescription(symbol: ?Symbol) {
let description = symbol ? symbol.toString() : 'undefined';
if (description.startsWith('Symbol(') && description.endsWith(')')) {
description = description.slice(7, -1);
}
// The polyfill es6-symbol that we use does not appear to comply with the
// Symbol standard and, merely, adds @@ at the beginning of the description.
if (description.startsWith('@@')) {
description = description.slice(2);
}
return description;
}
/**
* A helper function that behaves similar to Object.assign, but only reassigns a
* property in target if it's defined in source.

View File

@ -8,7 +8,7 @@
* type: CLEAR_CALENDAR_INTEGRATION
* }
*/
export const CLEAR_CALENDAR_INTEGRATION = Symbol('CLEAR_CALENDAR_INTEGRATION');
export const CLEAR_CALENDAR_INTEGRATION = 'CLEAR_CALENDAR_INTEGRATION';
/**
* Action to refresh (re-fetch) the entry list.
@ -19,7 +19,7 @@ export const CLEAR_CALENDAR_INTEGRATION = Symbol('CLEAR_CALENDAR_INTEGRATION');
* isInteractive: boolean
* }
*/
export const REFRESH_CALENDAR = Symbol('REFRESH_CALENDAR');
export const REFRESH_CALENDAR = 'REFRESH_CALENDAR';
/**
* Action to signal that calendar access has already been requested since the
@ -31,7 +31,7 @@ export const REFRESH_CALENDAR = Symbol('REFRESH_CALENDAR');
* authorization: ?string
* }
*/
export const SET_CALENDAR_AUTHORIZATION = Symbol('SET_CALENDAR_AUTHORIZATION');
export const SET_CALENDAR_AUTHORIZATION = 'SET_CALENDAR_AUTHORIZATION';
/**
* Action to update the last error that occurred while trying to authenticate
@ -42,7 +42,7 @@ export const SET_CALENDAR_AUTHORIZATION = Symbol('SET_CALENDAR_AUTHORIZATION');
* error: ?Object
* }
*/
export const SET_CALENDAR_ERROR = Symbol('SET_CALENDAR_ERROR');
export const SET_CALENDAR_ERROR = 'SET_CALENDAR_ERROR';
/**
* Action to update the current calendar entry list in the store.
@ -52,7 +52,7 @@ export const SET_CALENDAR_ERROR = Symbol('SET_CALENDAR_ERROR');
* events: Array<Object>
* }
*/
export const SET_CALENDAR_EVENTS = Symbol('SET_CALENDAR_EVENTS');
export const SET_CALENDAR_EVENTS = 'SET_CALENDAR_EVENTS';
/**
* Action to update calendar type to be used for web.
@ -63,7 +63,7 @@ export const SET_CALENDAR_EVENTS = Symbol('SET_CALENDAR_EVENTS');
* integrationType: string
* }
*/
export const SET_CALENDAR_INTEGRATION = Symbol('SET_CALENDAR_INTEGRATION');
export const SET_CALENDAR_INTEGRATION = 'SET_CALENDAR_INTEGRATION';
/**
* The type of Redux action which changes Calendar API auth state.
@ -73,7 +73,7 @@ export const SET_CALENDAR_INTEGRATION = Symbol('SET_CALENDAR_INTEGRATION');
* }
* @public
*/
export const SET_CALENDAR_AUTH_STATE = Symbol('SET_CALENDAR_AUTH_STATE');
export const SET_CALENDAR_AUTH_STATE = 'SET_CALENDAR_AUTH_STATE';
/**
* The type of Redux action which changes Calendar Profile email state.
@ -84,7 +84,7 @@ export const SET_CALENDAR_AUTH_STATE = Symbol('SET_CALENDAR_AUTH_STATE');
* }
* @public
*/
export const SET_CALENDAR_PROFILE_EMAIL = Symbol('SET_CALENDAR_PROFILE_EMAIL');
export const SET_CALENDAR_PROFILE_EMAIL = 'SET_CALENDAR_PROFILE_EMAIL';
/**
* The type of Redux action which denotes whether a request is in flight to get
@ -97,4 +97,4 @@ export const SET_CALENDAR_PROFILE_EMAIL = Symbol('SET_CALENDAR_PROFILE_EMAIL');
* @public
*/
export const SET_LOADING_CALENDAR_EVENTS
= Symbol('SET_LOADING_CALENDAR_EVENTS');
= 'SET_LOADING_CALENDAR_EVENTS';

View File

@ -13,7 +13,7 @@
* timestamp: string,
* }
*/
export const ADD_MESSAGE = Symbol('ADD_MESSAGE');
export const ADD_MESSAGE = 'ADD_MESSAGE';
/**
* The type of the action which signals to clear messages in Redux.
@ -22,7 +22,7 @@ export const ADD_MESSAGE = Symbol('ADD_MESSAGE');
* type: CLEAR_MESSAGES
* }
*/
export const CLEAR_MESSAGES = Symbol('CLEAR_MESSAGES');
export const CLEAR_MESSAGES = 'CLEAR_MESSAGES';
/**
* The type of the action which signals a send a chat message to everyone in the
@ -33,7 +33,7 @@ export const CLEAR_MESSAGES = Symbol('CLEAR_MESSAGES');
* message: string
* }
*/
export const SEND_MESSAGE = Symbol('SEND_MESSAGE');
export const SEND_MESSAGE = 'SEND_MESSAGE';
/**
* The type of the action which signals to toggle the display of the chat panel.
@ -42,4 +42,4 @@ export const SEND_MESSAGE = Symbol('SEND_MESSAGE');
* type: TOGGLE_CHAT
* }
*/
export const TOGGLE_CHAT = Symbol('TOGGLE_CHAT');
export const TOGGLE_CHAT = 'TOGGLE_CHAT';

View File

@ -8,7 +8,7 @@
* type: OPEN_DESKTOP
* }
*/
export const OPEN_DESKTOP_APP = Symbol('OPEN_DESKTOP_APP');
export const OPEN_DESKTOP_APP = 'OPEN_DESKTOP_APP';
/**
* The type of the action which signals to open the conference in the web app.
@ -17,4 +17,4 @@ export const OPEN_DESKTOP_APP = Symbol('OPEN_DESKTOP_APP');
* type: OPEN_WEB_APP
* }
*/
export const OPEN_WEB_APP = Symbol('OPEN_WEB_APP');
export const OPEN_WEB_APP = 'OPEN_WEB_APP';

View File

@ -7,4 +7,4 @@
* }}
*/
export const SET_DEVICE_SELECTION_POPUP_DATA
= Symbol('SET_DEVICE_SELECTION_POPUP_DATA');
= 'SET_DEVICE_SELECTION_POPUP_DATA';

View File

@ -8,4 +8,4 @@
* token: string
* }
*/
export const UPDATE_DROPBOX_TOKEN = Symbol('UPDATE_DROPBOX_TOKEN');
export const UPDATE_DROPBOX_TOKEN = 'UPDATE_DROPBOX_TOKEN';

View File

@ -5,7 +5,7 @@
* type: ETHERPAD_INITIALIZED
* }
*/
export const ETHERPAD_INITIALIZED = Symbol('ETHERPAD_INITIALIZED');
export const ETHERPAD_INITIALIZED = 'ETHERPAD_INITIALIZED';
/**
@ -16,7 +16,7 @@ export const ETHERPAD_INITIALIZED = Symbol('ETHERPAD_INITIALIZED');
* }
*/
export const SET_DOCUMENT_EDITING_STATUS
= Symbol('SET_DOCUMENT_EDITING_STATUS');
= 'SET_DOCUMENT_EDITING_STATUS';
/**
* The type of the action which signals to start or stop editing a shared
@ -26,4 +26,4 @@ export const SET_DOCUMENT_EDITING_STATUS
* type: TOGGLE_DOCUMENT_EDITING
* }
*/
export const TOGGLE_DOCUMENT_EDITING = Symbol('TOGGLE_DOCUMENT_EDITING');
export const TOGGLE_DOCUMENT_EDITING = 'TOGGLE_DOCUMENT_EDITING';

View File

@ -7,7 +7,7 @@
* score: number
* }
*/
export const CANCEL_FEEDBACK = Symbol('CANCEL_FEEDBACK');
export const CANCEL_FEEDBACK = 'CANCEL_FEEDBACK';
/**
* The type of the action which signals feedback was submitted for recording.
@ -18,4 +18,4 @@ export const CANCEL_FEEDBACK = Symbol('CANCEL_FEEDBACK');
* score: number
* }
*/
export const SUBMIT_FEEDBACK = Symbol('SUBMIT_FEEDBACK');
export const SUBMIT_FEEDBACK = 'SUBMIT_FEEDBACK';

View File

@ -6,7 +6,7 @@
* enabled: boolean
* }
*/
export const SET_FILMSTRIP_ENABLED = Symbol('SET_FILMSTRIP_ENABLED');
export const SET_FILMSTRIP_ENABLED = 'SET_FILMSTRIP_ENABLED';
/**
* The type of (redux) action which sets whether or not the filmstrip is being
@ -17,7 +17,7 @@ export const SET_FILMSTRIP_ENABLED = Symbol('SET_FILMSTRIP_ENABLED');
* hovered: boolean
* }
*/
export const SET_FILMSTRIP_HOVERED = Symbol('SET_FILMSTRIP_HOVERED');
export const SET_FILMSTRIP_HOVERED = 'SET_FILMSTRIP_HOVERED';
/**
* The type of (redux) action which sets whether the filmstrip is visible.
@ -27,4 +27,4 @@ export const SET_FILMSTRIP_HOVERED = Symbol('SET_FILMSTRIP_HOVERED');
* visible: boolean
* }
*/
export const SET_FILMSTRIP_VISIBLE = Symbol('SET_FILMSTRIP_VISIBLE');
export const SET_FILMSTRIP_VISIBLE = 'SET_FILMSTRIP_VISIBLE';

View File

@ -6,7 +6,7 @@
* }
* @public
*/
export const SET_GOOGLE_API_STATE = Symbol('SET_GOOGLE_API_STATE');
export const SET_GOOGLE_API_STATE = 'SET_GOOGLE_API_STATE';
/**
* The type of Redux action which changes Google API profile state.
@ -16,4 +16,4 @@ export const SET_GOOGLE_API_STATE = Symbol('SET_GOOGLE_API_STATE');
* }
* @public
*/
export const SET_GOOGLE_API_PROFILE = Symbol('SET_GOOGLE_API_PROFILE');
export const SET_GOOGLE_API_PROFILE = 'SET_GOOGLE_API_PROFILE';

View File

@ -7,7 +7,7 @@
* request: Object
* }
*/
export const ADD_PENDING_INVITE_REQUEST = Symbol('ADD_PENDING_INVITE_REQUEST');
export const ADD_PENDING_INVITE_REQUEST = 'ADD_PENDING_INVITE_REQUEST';
/**
* The type of the (redux) action which signals that a click/tap has been
@ -18,7 +18,7 @@ export const ADD_PENDING_INVITE_REQUEST = Symbol('ADD_PENDING_INVITE_REQUEST');
* type: BEGIN_ADD_PEOPLE
* }
*/
export const BEGIN_ADD_PEOPLE = Symbol('BEGIN_ADD_PEOPLE');
export const BEGIN_ADD_PEOPLE = 'BEGIN_ADD_PEOPLE';
/**
* The type of redux action which will remove pending invite requests from the
@ -29,7 +29,7 @@ export const BEGIN_ADD_PEOPLE = Symbol('BEGIN_ADD_PEOPLE');
* }
*/
export const REMOVE_PENDING_INVITE_REQUESTS
= Symbol('REMOVE_PENDING_INVITE_REQUESTS');
= 'REMOVE_PENDING_INVITE_REQUESTS';
/**
* The type of redux action which sets the visibility of {@code CalleeInfo}.
@ -39,7 +39,7 @@ export const REMOVE_PENDING_INVITE_REQUESTS
* calleeInfoVisible: boolean
* }
*/
export const SET_CALLEE_INFO_VISIBLE = Symbol('SET_CALLEE_INFO_VISIBLE');
export const SET_CALLEE_INFO_VISIBLE = 'SET_CALLEE_INFO_VISIBLE';
/**
* The type of redux action which sets the invite dialog visible or invisible.
@ -49,7 +49,7 @@ export const SET_CALLEE_INFO_VISIBLE = Symbol('SET_CALLEE_INFO_VISIBLE');
* visible: boolean
* }
*/
export const SET_INVITE_DIALOG_VISIBLE = Symbol('SET_INVITE_DIALOG_VISIBLE');
export const SET_INVITE_DIALOG_VISIBLE = 'SET_INVITE_DIALOG_VISIBLE';
/**
* The type of the action which signals an error occurred while requesting dial-
@ -61,7 +61,7 @@ export const SET_INVITE_DIALOG_VISIBLE = Symbol('SET_INVITE_DIALOG_VISIBLE');
* }
*/
export const UPDATE_DIAL_IN_NUMBERS_FAILED
= Symbol('UPDATE_DIAL_IN_NUMBERS_FAILED');
= 'UPDATE_DIAL_IN_NUMBERS_FAILED';
/**
* The type of the action which signals a request for dial-in numbers has
@ -74,4 +74,4 @@ export const UPDATE_DIAL_IN_NUMBERS_FAILED
* }
*/
export const UPDATE_DIAL_IN_NUMBERS_SUCCESS
= Symbol('UPDATE_DIAL_IN_NUMBERS_SUCCESS');
= 'UPDATE_DIAL_IN_NUMBERS_SUCCESS';

View File

@ -7,4 +7,4 @@
* }
*/
export const OPEN_KEYBOARD_SHORTCUTS_DIALOG
= Symbol('OPEN_KEYBOARD_SHORTCUTS_DIALOG');
= 'OPEN_KEYBOARD_SHORTCUTS_DIALOG';

View File

@ -7,7 +7,7 @@
* }
*/
export const SELECT_LARGE_VIDEO_PARTICIPANT
= Symbol('SELECT_LARGE_VIDEO_PARTICIPANT');
= 'SELECT_LARGE_VIDEO_PARTICIPANT';
/**
* Action to update the redux store with the current resolution of large video.
@ -18,4 +18,4 @@ export const SELECT_LARGE_VIDEO_PARTICIPANT
* }}
*/
export const UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION
= Symbol('UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION');
= 'UPDATE_KNOWN_LARGE_VIDEO_RESOLUTION';

View File

@ -7,7 +7,7 @@
* recordingEngagedAt: Date
* }
*/
export const LOCAL_RECORDING_ENGAGED = Symbol('LOCAL_RECORDING_ENGAGED');
export const LOCAL_RECORDING_ENGAGED = 'LOCAL_RECORDING_ENGAGED';
/**
* Action to signal that the local client has stopped recording,
@ -17,7 +17,7 @@ export const LOCAL_RECORDING_ENGAGED = Symbol('LOCAL_RECORDING_ENGAGED');
* type: LOCAL_RECORDING_UNENGAGED
* }
*/
export const LOCAL_RECORDING_UNENGAGED = Symbol('LOCAL_RECORDING_UNENGAGED');
export const LOCAL_RECORDING_UNENGAGED = 'LOCAL_RECORDING_UNENGAGED';
/**
* Action to update {@code LocalRecordingInfoDialog} with stats from all
@ -29,4 +29,4 @@ export const LOCAL_RECORDING_UNENGAGED = Symbol('LOCAL_RECORDING_UNENGAGED');
* }
*/
export const LOCAL_RECORDING_STATS_UPDATE
= Symbol('LOCAL_RECORDING_STATS_UPDATE');
= 'LOCAL_RECORDING_STATS_UPDATE';

View File

@ -8,7 +8,7 @@
*
* @protected
*/
export const _SET_APP_STATE_LISTENER = Symbol('_SET_APP_STATE_LISTENER');
export const _SET_APP_STATE_LISTENER = '_SET_APP_STATE_LISTENER';
/**
* The type of redux action which signals that the app state has changed (in
@ -23,4 +23,4 @@ export const _SET_APP_STATE_LISTENER = Symbol('_SET_APP_STATE_LISTENER');
* @public
* @see {@link https://facebook.github.io/react-native/docs/appstate.html}
*/
export const APP_STATE_CHANGED = Symbol('APP_STATE_CHANGED');
export const APP_STATE_CHANGED = 'APP_STATE_CHANGED';

View File

@ -10,4 +10,4 @@
* @protected
*/
export const _SET_CALL_INTEGRATION_SUBSCRIPTIONS
= Symbol('_SET_CALL_INTEGRATION_SUBSCRIPTIONS');
= '_SET_CALL_INTEGRATION_SUBSCRIPTIONS';

View File

@ -13,7 +13,7 @@ import {
import { LOAD_CONFIG_ERROR } from '../../base/config';
import { CONNECTION_FAILED } from '../../base/connection';
import { MiddlewareRegistry } from '../../base/redux';
import { getSymbolDescription, toURLString } from '../../base/util';
import { toURLString } from '../../base/util';
import { ENTER_PICTURE_IN_PICTURE } from '../picture-in-picture';
import { sendEvent } from './functions';
@ -69,7 +69,7 @@ MiddlewareRegistry.register(store => next => action => {
break;
case ENTER_PICTURE_IN_PICTURE:
sendEvent(store, getSymbolDescription(type), /* data */ {});
sendEvent(store, type, /* data */ {});
break;
case LOAD_CONFIG_ERROR: {
@ -133,7 +133,7 @@ function _maybeTriggerEarlyConferenceWillJoin(store, action) {
isRoomValid(room) && locationURL && sendEvent(
store,
getSymbolDescription(CONFERENCE_WILL_JOIN),
CONFERENCE_WILL_JOIN,
/* data */ {
url: toURLString(locationURL)
});
@ -151,7 +151,7 @@ function _sendConferenceEvent(
store: Object,
action: {
conference: Object,
type: Symbol,
type: string,
url: ?string
}) {
const { conference, type, ...data } = action;
@ -175,7 +175,7 @@ function _sendConferenceEvent(
type_ = CONFERENCE_TERMINATED;
break;
default:
type_ = getSymbolDescription(type);
type_ = type;
break;
}

View File

@ -9,4 +9,4 @@
*
* @protected
*/
export const _SET_IMMERSIVE_LISTENER = Symbol('_SET_IMMERSIVE_LISTENER');
export const _SET_IMMERSIVE_LISTENER = '_SET_IMMERSIVE_LISTENER';

View File

@ -5,7 +5,7 @@
* type: INCOMING_CALL_ANSWERED
* }
*/
export const INCOMING_CALL_ANSWERED = Symbol('INCOMING_CALL_ANSWERED');
export const INCOMING_CALL_ANSWERED = 'INCOMING_CALL_ANSWERED';
/**
* The type of redux action to decline an incoming call.
@ -14,7 +14,7 @@ export const INCOMING_CALL_ANSWERED = Symbol('INCOMING_CALL_ANSWERED');
* type: INCOMING_CALL_DECLINED
* }
*/
export const INCOMING_CALL_DECLINED = Symbol('INCOMING_CALL_DECLINED');
export const INCOMING_CALL_DECLINED = 'INCOMING_CALL_DECLINED';
/**
* The type of redux action to receive an incoming call.
@ -24,4 +24,4 @@ export const INCOMING_CALL_DECLINED = Symbol('INCOMING_CALL_DECLINED');
* caller: Object
* }
*/
export const INCOMING_CALL_RECEIVED = Symbol('INCOMING_CALL_RECEIVED');
export const INCOMING_CALL_RECEIVED = 'INCOMING_CALL_RECEIVED';

View File

@ -1,7 +1,6 @@
// @flow
import { MiddlewareRegistry } from '../../base/redux';
import { getSymbolDescription } from '../../base/util';
import { sendEvent } from '../external-api';
@ -20,7 +19,7 @@ MiddlewareRegistry.register(store => next => action => {
switch (action.type) {
case INCOMING_CALL_ANSWERED:
case INCOMING_CALL_DECLINED:
sendEvent(store, getSymbolDescription(action.type), /* data */ {});
sendEvent(store, action.type, /* data */ {});
break;
}

View File

@ -8,7 +8,7 @@
*
* @protected
*/
export const _ADD_NETWORK_REQUEST = Symbol('_ADD_NETWORK_REQUEST');
export const _ADD_NETWORK_REQUEST = '_ADD_NETWORK_REQUEST';
/**
* The type of redux action to remove all network requests from the redux
@ -21,7 +21,7 @@ export const _ADD_NETWORK_REQUEST = Symbol('_ADD_NETWORK_REQUEST');
* @protected
*/
export const _REMOVE_ALL_NETWORK_REQUESTS
= Symbol('_REMOVE_ALL_NETWORK_REQUESTS');
= '_REMOVE_ALL_NETWORK_REQUESTS';
/**
* The type of redux action to remove a network request from the redux
@ -34,4 +34,4 @@ export const _REMOVE_ALL_NETWORK_REQUESTS
*
* @protected
*/
export const _REMOVE_NETWORK_REQUEST = Symbol('_REMOVE_NETWORK_REQUEST');
export const _REMOVE_NETWORK_REQUEST = '_REMOVE_NETWORK_REQUEST';

View File

@ -8,4 +8,4 @@
*
* @public
*/
export const ENTER_PICTURE_IN_PICTURE = Symbol('ENTER_PICTURE_IN_PICTURE');
export const ENTER_PICTURE_IN_PICTURE = 'ENTER_PICTURE_IN_PICTURE';

View File

@ -6,7 +6,7 @@
* type: CLEAR_NOTIFICATIONS
* }
*/
export const CLEAR_NOTIFICATIONS = Symbol('CLEAR_NOTIFICATIONS');
export const CLEAR_NOTIFICATIONS = 'CLEAR_NOTIFICATIONS';
/**
* The type of (redux) action which signals that a specific notification should
@ -17,7 +17,7 @@ export const CLEAR_NOTIFICATIONS = Symbol('CLEAR_NOTIFICATIONS');
* uid: number
* }
*/
export const HIDE_NOTIFICATION = Symbol('HIDE_NOTIFICATION');
export const HIDE_NOTIFICATION = 'HIDE_NOTIFICATION';
/**
* The type of (redux) action which signals that a notification component should
@ -31,7 +31,7 @@ export const HIDE_NOTIFICATION = Symbol('HIDE_NOTIFICATION');
* uid: number
* }
*/
export const SHOW_NOTIFICATION = Symbol('SHOW_NOTIFICATION');
export const SHOW_NOTIFICATION = 'SHOW_NOTIFICATION';
/**
* The type of (redux) action which signals that notifications should not
@ -42,4 +42,4 @@ export const SHOW_NOTIFICATION = Symbol('SHOW_NOTIFICATION');
* enabled: Boolean
* }
*/
export const SET_NOTIFICATIONS_ENABLED = Symbol('SET_NOTIFICATIONS_ENABLED');
export const SET_NOTIFICATIONS_ENABLED = 'SET_NOTIFICATIONS_ENABLED';

View File

@ -10,7 +10,7 @@
* @public
*/
export const MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED
= Symbol('MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED');
= 'MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED';
/**
* The type of the Redux action which signals that a suspend was detected.
@ -20,7 +20,7 @@ export const MEDIA_PERMISSION_PROMPT_VISIBILITY_CHANGED
* }
* @public
*/
export const SUSPEND_DETECTED = Symbol('SUSPEND_DETECTED');
export const SUSPEND_DETECTED = 'SUSPEND_DETECTED';
/**
* Adjust the state of the fatal error which shows/hides the reload screen. See
@ -32,4 +32,4 @@ export const SUSPEND_DETECTED = Symbol('SUSPEND_DETECTED');
* }
* @public
*/
export const SET_FATAL_ERROR = Symbol('SET_FATAL_ERROR');
export const SET_FATAL_ERROR = 'SET_FATAL_ERROR';

View File

@ -8,7 +8,7 @@
* entryId: Object
* }
*/
export const DELETE_RECENT_LIST_ENTRY = Symbol('DELETE_RECENT_LIST_ENTRY');
export const DELETE_RECENT_LIST_ENTRY = 'DELETE_RECENT_LIST_ENTRY';
/**
* Action type to signal a new addition to the list.
@ -20,7 +20,7 @@ export const DELETE_RECENT_LIST_ENTRY = Symbol('DELETE_RECENT_LIST_ENTRY');
*
* @protected
*/
export const _STORE_CURRENT_CONFERENCE = Symbol('_STORE_CURRENT_CONFERENCE');
export const _STORE_CURRENT_CONFERENCE = '_STORE_CURRENT_CONFERENCE';
/**
* Action type to signal that a new conference duration info is available.
@ -33,4 +33,4 @@ export const _STORE_CURRENT_CONFERENCE = Symbol('_STORE_CURRENT_CONFERENCE');
* @protected
*/
export const _UPDATE_CONFERENCE_DURATION
= Symbol('_UPDATE_CONFERENCE_DURATION');
= '_UPDATE_CONFERENCE_DURATION';

View File

@ -8,7 +8,7 @@
* }
* @public
*/
export const CLEAR_RECORDING_SESSIONS = Symbol('CLEAR_RECORDING_SESSIONS');
export const CLEAR_RECORDING_SESSIONS = 'CLEAR_RECORDING_SESSIONS';
/**
* The type of Redux action which updates the current known state of a recording
@ -20,7 +20,7 @@ export const CLEAR_RECORDING_SESSIONS = Symbol('CLEAR_RECORDING_SESSIONS');
* }
* @public
*/
export const RECORDING_SESSION_UPDATED = Symbol('RECORDING_SESSION_UPDATED');
export const RECORDING_SESSION_UPDATED = 'RECORDING_SESSION_UPDATED';
/**
* The type of Redux action which sets the pending recording notification UID to
@ -35,7 +35,7 @@ export const RECORDING_SESSION_UPDATED = Symbol('RECORDING_SESSION_UPDATED');
* @public
*/
export const SET_PENDING_RECORDING_NOTIFICATION_UID
= Symbol('SET_PENDING_RECORDING_NOTIFICATION_UID');
= 'SET_PENDING_RECORDING_NOTIFICATION_UID';
/**
* Sets the stream key last used by the user for later reuse.
@ -45,4 +45,4 @@ export const SET_PENDING_RECORDING_NOTIFICATION_UID
* streamKey: string
* }
*/
export const SET_STREAM_KEY = Symbol('SET_STREAM_KEY');
export const SET_STREAM_KEY = 'SET_STREAM_KEY';

View File

@ -7,4 +7,4 @@
* visible: boolean
* }
*/
export const SET_SETTINGS_VIEW_VISIBLE = Symbol('SET_SETTINGS_VIEW_VISIBLE');
export const SET_SETTINGS_VIEW_VISIBLE = 'SET_SETTINGS_VIEW_VISIBLE';

View File

@ -8,7 +8,7 @@
* includeDialInfo: boolean
* }
*/
export const BEGIN_SHARE_ROOM = Symbol('BEGIN_SHARE_ROOM');
export const BEGIN_SHARE_ROOM = 'BEGIN_SHARE_ROOM';
/**
* The type of (redux) action which ends the UI procedure to share a specific
@ -20,4 +20,4 @@ export const BEGIN_SHARE_ROOM = Symbol('BEGIN_SHARE_ROOM');
* shared: boolean
* }
*/
export const END_SHARE_ROOM = Symbol('END_SHARE_ROOM');
export const END_SHARE_ROOM = 'END_SHARE_ROOM';

View File

@ -7,7 +7,7 @@
* status: string
* }
*/
export const SET_SHARED_VIDEO_STATUS = Symbol('SET_SHARED_VIDEO_STATUS');
export const SET_SHARED_VIDEO_STATUS = 'SET_SHARED_VIDEO_STATUS';
/**
* The type of the action which signals to start the flow for starting or
@ -17,4 +17,4 @@ export const SET_SHARED_VIDEO_STATUS = Symbol('SET_SHARED_VIDEO_STATUS');
* type: TOGGLE_SHARED_VIDEO
* }
*/
export const TOGGLE_SHARED_VIDEO = Symbol('TOGGLE_SHARED_VIDEO');
export const TOGGLE_SHARED_VIDEO = 'TOGGLE_SHARED_VIDEO';

View File

@ -9,7 +9,7 @@
* json: Object
* }
*/
export const ENDPOINT_MESSAGE_RECEIVED = Symbol('ENDPOINT_MESSAGE_RECEIVED');
export const ENDPOINT_MESSAGE_RECEIVED = 'ENDPOINT_MESSAGE_RECEIVED';
/**
* The type of (redux) action which indicates that an existing transcript
@ -20,7 +20,7 @@ export const ENDPOINT_MESSAGE_RECEIVED = Symbol('ENDPOINT_MESSAGE_RECEIVED');
* transciptMessageID: string,
* }
*/
export const REMOVE_TRANSCRIPT_MESSAGE = Symbol('REMOVE_TRANSCRIPT_MESSAGE');
export const REMOVE_TRANSCRIPT_MESSAGE = 'REMOVE_TRANSCRIPT_MESSAGE';
/**
* The type of (redux) action which indicates that a transcript with an
@ -32,7 +32,7 @@ export const REMOVE_TRANSCRIPT_MESSAGE = Symbol('REMOVE_TRANSCRIPT_MESSAGE');
* newTranscriptMessage: Object
* }
*/
export const UPDATE_TRANSCRIPT_MESSAGE = Symbol('UPDATE_TRANSCRIPT_MESSAGE');
export const UPDATE_TRANSCRIPT_MESSAGE = 'UPDATE_TRANSCRIPT_MESSAGE';
/**
* The type of (redux) action which indicates that the user pressed the
@ -44,4 +44,4 @@ export const UPDATE_TRANSCRIPT_MESSAGE = Symbol('UPDATE_TRANSCRIPT_MESSAGE');
* }
*/
export const TOGGLE_REQUESTING_SUBTITLES
= Symbol('TOGGLE_REQUESTING_SUBTITLES');
= 'TOGGLE_REQUESTING_SUBTITLES';

View File

@ -5,7 +5,7 @@
* type: CLEAR_TOOLBOX_TIMEOUT
* }
*/
export const CLEAR_TOOLBOX_TIMEOUT = Symbol('CLEAR_TOOLBOX_TIMEOUT');
export const CLEAR_TOOLBOX_TIMEOUT = 'CLEAR_TOOLBOX_TIMEOUT';
/**
* The type of (redux) action which updates whether the conference is or is not
@ -16,7 +16,7 @@ export const CLEAR_TOOLBOX_TIMEOUT = Symbol('CLEAR_TOOLBOX_TIMEOUT');
* fullScreen: boolean
* }
*/
export const FULL_SCREEN_CHANGED = Symbol('FULL_SCREEN_CHANGED');
export const FULL_SCREEN_CHANGED = 'FULL_SCREEN_CHANGED';
/**
* The type of (redux) action which requests full screen mode be entered or
@ -27,7 +27,7 @@ export const FULL_SCREEN_CHANGED = Symbol('FULL_SCREEN_CHANGED');
* fullScreen: boolean
* }
*/
export const SET_FULL_SCREEN = Symbol('SET_FULL_SCREEN');
export const SET_FULL_SCREEN = 'SET_FULL_SCREEN';
/**
* The type of the (redux) action which shows/hides the OverflowMenu.
@ -37,7 +37,7 @@ export const SET_FULL_SCREEN = Symbol('SET_FULL_SCREEN');
* visible: boolean
* }
*/
export const SET_OVERFLOW_MENU_VISIBLE = Symbol('SET_OVERFLOW_MENU_VISIBLE');
export const SET_OVERFLOW_MENU_VISIBLE = 'SET_OVERFLOW_MENU_VISIBLE';
/**
* The type of the action which sets the indicator which determiens whether a
@ -48,7 +48,7 @@ export const SET_OVERFLOW_MENU_VISIBLE = Symbol('SET_OVERFLOW_MENU_VISIBLE');
* hovered: boolean
* }
*/
export const SET_TOOLBAR_HOVERED = Symbol('SET_TOOLBAR_HOVERED');
export const SET_TOOLBAR_HOVERED = 'SET_TOOLBAR_HOVERED';
/**
* The type of the action which sets the permanent visibility of the Toolbox.
@ -58,7 +58,7 @@ export const SET_TOOLBAR_HOVERED = Symbol('SET_TOOLBAR_HOVERED');
* alwaysVisible: boolean
* }
*/
export const SET_TOOLBOX_ALWAYS_VISIBLE = Symbol('SET_TOOLBOX_ALWAYS_VISIBLE');
export const SET_TOOLBOX_ALWAYS_VISIBLE = 'SET_TOOLBOX_ALWAYS_VISIBLE';
/**
* The type of the (redux) action which enables/disables the Toolbox.
@ -68,7 +68,7 @@ export const SET_TOOLBOX_ALWAYS_VISIBLE = Symbol('SET_TOOLBOX_ALWAYS_VISIBLE');
* enabled: boolean
* }
*/
export const SET_TOOLBOX_ENABLED = Symbol('SET_TOOLBOX_ENABLED');
export const SET_TOOLBOX_ENABLED = 'SET_TOOLBOX_ENABLED';
/**
* The type of the action which sets a new Toolbox visibility timeout and its
@ -80,7 +80,7 @@ export const SET_TOOLBOX_ENABLED = Symbol('SET_TOOLBOX_ENABLED');
* timeoutMS: number
* }
*/
export const SET_TOOLBOX_TIMEOUT = Symbol('SET_TOOLBOX_TIMEOUT');
export const SET_TOOLBOX_TIMEOUT = 'SET_TOOLBOX_TIMEOUT';
/**
* The type of the action which sets the delay in milliseconds after which
@ -91,7 +91,7 @@ export const SET_TOOLBOX_TIMEOUT = Symbol('SET_TOOLBOX_TIMEOUT');
* timeoutMS: number
* }
*/
export const SET_TOOLBOX_TIMEOUT_MS = Symbol('SET_TOOLBOX_TIMEOUT');
export const SET_TOOLBOX_TIMEOUT_MS = 'SET_TOOLBOX_TIMEOUT';
/**
* The type of the (redux) action which shows/hides the Toolbox.
@ -101,4 +101,4 @@ export const SET_TOOLBOX_TIMEOUT_MS = Symbol('SET_TOOLBOX_TIMEOUT');
* visible: boolean
* }
*/
export const SET_TOOLBOX_VISIBLE = Symbol('SET_TOOLBOX_VISIBLE');
export const SET_TOOLBOX_VISIBLE = 'SET_TOOLBOX_VISIBLE';

View File

@ -6,7 +6,7 @@
* }
* @public
*/
export const DIAL_TRANSCRIBER = Symbol('DIAL_TRANSCRIBER');
export const DIAL_TRANSCRIBER = 'DIAL_TRANSCRIBER';
/**
* The type of Redux action triggering the transcriber to leave.
@ -16,7 +16,7 @@ export const DIAL_TRANSCRIBER = Symbol('DIAL_TRANSCRIBER');
* }
* @public
*/
export const STOP_TRANSCRIBING = Symbol('STOP_TRANSCRBIBING');
export const STOP_TRANSCRIBING = 'STOP_TRANSCRBIBING';
/**
* The type of Redux action triggering storage of participantId of transcriber,
@ -28,7 +28,7 @@ export const STOP_TRANSCRIBING = Symbol('STOP_TRANSCRBIBING');
* }
* @private
*/
export const _TRANSCRIBER_JOINED = Symbol('TRANSCRIBER_JOINED');
export const _TRANSCRIBER_JOINED = 'TRANSCRIBER_JOINED';
/**
* The type of Redux action signalling that the transcriber has left
@ -39,7 +39,7 @@ export const _TRANSCRIBER_JOINED = Symbol('TRANSCRIBER_JOINED');
* }
* @private
*/
export const _TRANSCRIBER_LEFT = Symbol('TRANSCRIBER_LEFT');
export const _TRANSCRIBER_LEFT = 'TRANSCRIBER_LEFT';
/**
* The type of a Redux action signalling that a hidden participant has joined,
@ -51,7 +51,7 @@ export const _TRANSCRIBER_LEFT = Symbol('TRANSCRIBER_LEFT');
* @private
*/
export const _POTENTIAL_TRANSCRIBER_JOINED
= Symbol('POTENTIAL_TRANSCRIBER_JOINED');
= 'POTENTIAL_TRANSCRIBER_JOINED';
/**
* The type of a Redux action signalling that dialing the transcriber failed.
@ -61,7 +61,7 @@ export const _POTENTIAL_TRANSCRIBER_JOINED
* }
* @private
*/
export const _DIAL_ERROR = Symbol('DIAL_ERROR');
export const _DIAL_ERROR = 'DIAL_ERROR';
/**
* The type of Redux action which sets the pending transcribing notification UID
@ -75,4 +75,4 @@ export const _DIAL_ERROR = Symbol('DIAL_ERROR');
* @public
*/
export const SET_PENDING_TRANSCRIBING_NOTIFICATION_UID
= Symbol('SET_PENDING_TRANSCRIBING_NOTIFICATION_UID');
= 'SET_PENDING_TRANSCRIBING_NOTIFICATION_UID';

View File

@ -7,4 +7,4 @@
* enabled: boolean
* }}
*/
export const SET_TILE_VIEW = Symbol('SET_TILE_VIEW');
export const SET_TILE_VIEW = 'SET_TILE_VIEW';

View File

@ -8,7 +8,7 @@
* }
*/
export const SIP_GW_AVAILABILITY_CHANGED
= Symbol('SIP_GW_AVAILABILITY_CHANGED');
= 'SIP_GW_AVAILABILITY_CHANGED';
/**
* The type of the action which signals to invite room participants to the
@ -20,4 +20,4 @@ export const SIP_GW_AVAILABILITY_CHANGED
* rooms: {Immutable.List}
* }
*/
export const SIP_GW_INVITE_ROOMS = Symbol('SIP_GW_INVITE_ROOMS');
export const SIP_GW_INVITE_ROOMS = 'SIP_GW_INVITE_ROOMS';

View File

@ -9,7 +9,7 @@
* visible: boolean
* }
*/
export const SET_SIDEBAR_VISIBLE = Symbol('SET_SIDEBAR_VISIBLE');
export const SET_SIDEBAR_VISIBLE = 'SET_SIDEBAR_VISIBLE';
/**
* The type of (redux) action to set the default page index of
@ -21,4 +21,4 @@ export const SET_SIDEBAR_VISIBLE = Symbol('SET_SIDEBAR_VISIBLE');
* }
*/
export const SET_WELCOME_PAGE_LISTS_DEFAULT_PAGE
= Symbol('SET_WELCOME_PAGE_LIST_DEFAULT_PAGE');
= 'SET_WELCOME_PAGE_LIST_DEFAULT_PAGE';