Skip to content

Commit 1ab5ff0

Browse files
committed
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>
1 parent 4c8f77b commit 1ab5ff0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vector/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ import Platform from './platform';
7979
import MatrixClientPeg from 'matrix-react-sdk/lib/MatrixClientPeg';
8080
import SettingsStore, {SettingLevel} from "matrix-react-sdk/lib/settings/SettingsStore";
8181
import Tinter from 'matrix-react-sdk/lib/Tinter';
82+
import SdkConfig from "matrix-react-sdk/lib/SdkConfig";
8283

8384
var lastLocationHashSet = null;
8485

@@ -295,6 +296,7 @@ async function loadApp() {
295296
} catch (e) {
296297
configError = e;
297298
}
299+
SdkConfig.put(configJson);
298300

299301
// as quickly as we possibly can, set a default theme...
300302
const styleElements = Object.create(null);

0 commit comments

Comments
 (0)