浏览代码

fix(virtual-backgrounds) fix error if we failed to load the model

If another try is made, show an error notification instead of failing with an
exception.
master
Saúl Ibarra Corretgé 3 年前
父节点
当前提交
a182f53cdc
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      react/features/stream-effects/virtual-background/index.js

+ 6
- 0
react/features/stream-effects/virtual-background/index.js 查看文件

@@ -74,6 +74,12 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
74 74
 
75 75
             return;
76 76
         }
77
+    } else if (isWasmDisabled) {
78
+        dispatch(showWarningNotification({
79
+            titleKey: 'virtualBackground.backgroundEffectError'
80
+        }, NOTIFICATION_TIMEOUT_TYPE.LONG));
81
+
82
+        return;
77 83
     }
78 84
 
79 85
     const modelBufferOffset = tflite._getModelBufferMemoryOffset();

正在加载...
取消
保存