Browse Source

Merge pull request #3442 from virtuacoplenny/lenny/subtitles-blown-away

fix(subtitles): fix typo that was blowing away subtitles on update
master
virtuacoplenny 7 years ago
parent
commit
32fbcb17b9
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      react/features/subtitles/reducer.js

+ 2
- 2
react/features/subtitles/reducer.js View File

@@ -45,7 +45,7 @@ ReducerRegistry.register('features/subtitles', (
45 45
  * reduction of the specified action.
46 46
  */
47 47
 function _removeTranscriptMessage(state, { transcriptMessageID }) {
48
-    const newTranscriptMessages = new Map(state.transcriptMessages);
48
+    const newTranscriptMessages = new Map(state._transcriptMessages);
49 49
 
50 50
     // Deletes the key from Map once a final message arrives.
51 51
     newTranscriptMessages.delete(transcriptMessageID);
@@ -67,7 +67,7 @@ function _removeTranscriptMessage(state, { transcriptMessageID }) {
67 67
  */
68 68
 function _updateTranscriptMessage(state,
69 69
         { transcriptMessageID, newTranscriptMessage }) {
70
-    const newTranscriptMessages = new Map(state.transcriptMessages);
70
+    const newTranscriptMessages = new Map(state._transcriptMessages);
71 71
 
72 72
     // Updates the new message for the given key in the Map.
73 73
     newTranscriptMessages.set(transcriptMessageID, newTranscriptMessage);

Loading…
Cancel
Save