Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(transcriptions) avoid generating duplicated events

Saúl Ibarra Corretgé2be837700942
diff --git a/react/features/chat/middleware.ts b/react/features/chat/middleware.ts
index e8e5e8d277..ba21403186 100644
--- a/react/features/chat/middleware.ts
+++ b/react/features/chat/middleware.ts
@@ -29,7 +29,6 @@ import { ADD_REACTION_MESSAGE } from '../reactions/actionTypes';
import { pushReactions } from '../reactions/actions.any';
import { ENDPOINT_REACTION_NAME } from '../reactions/constants';
import { getReactionMessageFromBuffer, isReactionsEnabled } from '../reactions/functions.any';
-import { endpointMessageReceived } from '../subtitles/actions.any';
import { showToolbox } from '../toolbox/actions';
@@ -253,6 +252,7 @@ function _addChatMsgListener(conference: IJitsiConference, store: IStore) {
}
);
+ // TODO: clean this up, there should be a central place that dispatches this. -saghul
conference.on(
JitsiConferenceEvents.ENDPOINT_MESSAGE_RECEIVED,
(...args: any) => {
@@ -262,9 +262,6 @@ function _addChatMsgListener(conference: IJitsiConference, store: IStore) {
return;
}
- // @ts-ignore
- store.dispatch(endpointMessageReceived(...args));
-
if (args && args.length >= 2) {
const [ { _id }, eventData ] = args;