Set the SdkConfig values immediately after loading the config

This is to ensure that when we make a call to get the theme we'll have the SdkConfig available.

Signed-off-by: Travis Ralston <travpc@gmail.com>
pull/5630/head
Travis Ralston 2017-11-16 20:50:29 -07:00
parent 4c8f77bb80
commit 1ab5ff079c
1 changed files with 2 additions and 0 deletions

View File

@ -79,6 +79,7 @@ import Platform from './platform';
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
import SettingsStore, {SettingLevel} from "matrix-react-sdk/lib/settings/SettingsStore";
import Tinter from 'matrix-react-sdk/lib/Tinter';
import SdkConfig from "matrix-react-sdk/lib/SdkConfig";
var lastLocationHashSet = null;
@ -295,6 +296,7 @@ async function loadApp() {
} catch (e) {
configError = e;
}
SdkConfig.put(configJson);
// as quickly as we possibly can, set a default theme...
const styleElements = Object.create(null);