Browse Source

fix(subtitles): fix typo that was blowing away subtitles on update

j8
Leonard Kim 7 years ago
parent
commit
282e66b2dc
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
  * reduction of the specified action.
45
  * reduction of the specified action.
46
  */
46
  */
47
 function _removeTranscriptMessage(state, { transcriptMessageID }) {
47
 function _removeTranscriptMessage(state, { transcriptMessageID }) {
48
-    const newTranscriptMessages = new Map(state.transcriptMessages);
48
+    const newTranscriptMessages = new Map(state._transcriptMessages);
49
 
49
 
50
     // Deletes the key from Map once a final message arrives.
50
     // Deletes the key from Map once a final message arrives.
51
     newTranscriptMessages.delete(transcriptMessageID);
51
     newTranscriptMessages.delete(transcriptMessageID);
67
  */
67
  */
68
 function _updateTranscriptMessage(state,
68
 function _updateTranscriptMessage(state,
69
         { transcriptMessageID, newTranscriptMessage }) {
69
         { transcriptMessageID, newTranscriptMessage }) {
70
-    const newTranscriptMessages = new Map(state.transcriptMessages);
70
+    const newTranscriptMessages = new Map(state._transcriptMessages);
71
 
71
 
72
     // Updates the new message for the given key in the Map.
72
     // Updates the new message for the given key in the Map.
73
     newTranscriptMessages.set(transcriptMessageID, newTranscriptMessage);
73
     newTranscriptMessages.set(transcriptMessageID, newTranscriptMessage);

Loading…
Cancel
Save