소스 검색

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
 
74
 
75
             return;
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
     const modelBufferOffset = tflite._getModelBufferMemoryOffset();
85
     const modelBufferOffset = tflite._getModelBufferMemoryOffset();

Loading…
취소
저장