Skip to content

Commit

Permalink
squash: Renames action.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Oct 2, 2024
1 parent ea54012 commit 50be5b8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion react/features/transcribing/actionTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* }
* @private
*/
export const _TRANSCRIBER_JOINED = 'TRANSCRIBER_JOINED';
export const TRANSCRIBER_JOINED = 'TRANSCRIBER_JOINED';

/**
* The type of Redux action signalling that the transcriber has left
Expand Down
8 changes: 4 additions & 4 deletions react/features/transcribing/actions.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import {
TRANSCRIBER_LEFT,
_TRANSCRIBER_JOINED
TRANSCRIBER_JOINED,
TRANSCRIBER_LEFT
} from './actionTypes';

/**
* Notify that the transcriber, with a unique ID, has joined.
*
* @param {string} participantId - The participant id of the transcriber.
* @returns {{
* type: _TRANSCRIBER_JOINED,
* type: TRANSCRIBER_JOINED,
* participantId: string
* }}
*/
export function transcriberJoined(participantId: string) {
return {
type: _TRANSCRIBER_JOINED,
type: TRANSCRIBER_JOINED,
transcriberJID: participantId
};
}
Expand Down
6 changes: 3 additions & 3 deletions react/features/transcribing/reducer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import ReducerRegistry from '../base/redux/ReducerRegistry';

import {
TRANSCRIBER_LEFT,
_TRANSCRIBER_JOINED
TRANSCRIBER_JOINED,
TRANSCRIBER_LEFT
} from './actionTypes';

/**
Expand Down Expand Up @@ -44,7 +44,7 @@ export interface ITranscribingState {
ReducerRegistry.register<ITranscribingState>('features/transcribing',
(state = _getInitialState(), action): ITranscribingState => {
switch (action.type) {
case _TRANSCRIBER_JOINED:
case TRANSCRIBER_JOINED:
return {
...state,
isTranscribing: true,
Expand Down

0 comments on commit 50be5b8

Please sign in to comment.