mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
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.
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
9b3f254c6b
commit
a182f53cdc
@@ -74,6 +74,12 @@ export async function createVirtualBackgroundEffect(virtualBackground: Object, d
|
||||
|
||||
return;
|
||||
}
|
||||
} else if (isWasmDisabled) {
|
||||
dispatch(showWarningNotification({
|
||||
titleKey: 'virtualBackground.backgroundEffectError'
|
||||
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
const modelBufferOffset = tflite._getModelBufferMemoryOffset();
|
||||
|
||||
Reference in New Issue
Block a user