浏览代码

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,6 +102,7 @@ function _conferenceFailed(state, { conference, error }) {
102 102
     return assign(state, {
103 103
         authRequired,
104 104
         conference: undefined,
105
+        error,
105 106
         joining: undefined,
106 107
         leaving: undefined,
107 108
 
@@ -224,7 +225,10 @@ function _conferenceLeft(state, { conference }) {
224 225
  * reduction of the specified action.
225 226
  */
226 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
 /**

正在加载...
取消
保存