Переглянути джерело

feat(conference): store conference errors in redux

j8
Saúl Ibarra Corretgé 7 роки тому
джерело
коміт
d0859b3ce1
1 змінених файлів з 5 додано та 1 видалено
  1. 5
    1
      react/features/base/conference/reducer.js

+ 5
- 1
react/features/base/conference/reducer.js Переглянути файл

102
     return assign(state, {
102
     return assign(state, {
103
         authRequired,
103
         authRequired,
104
         conference: undefined,
104
         conference: undefined,
105
+        error,
105
         joining: undefined,
106
         joining: undefined,
106
         leaving: undefined,
107
         leaving: undefined,
107
 
108
 
224
  * reduction of the specified action.
225
  * reduction of the specified action.
225
  */
226
  */
226
 function _conferenceWillJoin(state, { conference }) {
227
 function _conferenceWillJoin(state, { conference }) {
227
-    return set(state, 'joining', conference);
228
+    return assign(state, {
229
+        error: undefined,
230
+        joining: conference
231
+    });
228
 }
232
 }
229
 
233
 
230
 /**
234
 /**

Завантаження…
Відмінити
Зберегти