Sfoglia il codice sorgente

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

fix(subtitles): fix typo that was blowing away subtitles on update
master
virtuacoplenny 7 anni fa
parent
commit
32fbcb17b9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      react/features/subtitles/reducer.js

+ 2
- 2
react/features/subtitles/reducer.js Vedi 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…
Annulla
Salva