[RN] Detect errors when loading the configuration
The error is stored in the redux store in base/config so other components can consult it. It is also broadcasted as a new event in the external API for the SDK.
This commit is contained in:
committed by
Lyubo Marinov
parent
1d8ee9d32f
commit
284e4e543e
@@ -1,6 +1,6 @@
|
||||
import { setRoom } from '../base/conference';
|
||||
import { setLocationURL } from '../base/connection';
|
||||
import { setConfig } from '../base/config';
|
||||
import { loadConfigError, setConfig } from '../base/config';
|
||||
import { loadConfig } from '../base/lib-jitsi-meet';
|
||||
import { parseURIString } from '../base/util';
|
||||
|
||||
@@ -66,8 +66,12 @@ function _appNavigateToMandatoryLocation(
|
||||
// certificate-related error. In which case the connection will
|
||||
// fail later in Strophe anyway even if we use the default
|
||||
// config here.
|
||||
dispatch(loadConfigError(error));
|
||||
|
||||
// We cannot go to the requested room if we weren't able to load
|
||||
// the configuration. Go back to the entryway.
|
||||
newLocation.room = undefined;
|
||||
|
||||
// The function loadConfig will log the err.
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user