From 282e66b2dca2eb66c3652dcf75eccfa394c84b13 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Tue, 11 Sep 2018 11:08:15 -0700 Subject: [PATCH] fix(subtitles): fix typo that was blowing away subtitles on update --- react/features/subtitles/reducer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react/features/subtitles/reducer.js b/react/features/subtitles/reducer.js index 30fbc723d..c6162a850 100644 --- a/react/features/subtitles/reducer.js +++ b/react/features/subtitles/reducer.js @@ -45,7 +45,7 @@ ReducerRegistry.register('features/subtitles', ( * reduction of the specified action. */ function _removeTranscriptMessage(state, { transcriptMessageID }) { - const newTranscriptMessages = new Map(state.transcriptMessages); + const newTranscriptMessages = new Map(state._transcriptMessages); // Deletes the key from Map once a final message arrives. newTranscriptMessages.delete(transcriptMessageID); @@ -67,7 +67,7 @@ function _removeTranscriptMessage(state, { transcriptMessageID }) { */ function _updateTranscriptMessage(state, { transcriptMessageID, newTranscriptMessage }) { - const newTranscriptMessages = new Map(state.transcriptMessages); + const newTranscriptMessages = new Map(state._transcriptMessages); // Updates the new message for the given key in the Map. newTranscriptMessages.set(transcriptMessageID, newTranscriptMessage);