Skip to content

Commit 6a5268f

Browse files
committed
fix loadConfig
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 7633009 commit 6a5268f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vector/init.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ export function preparePlatform() {
4646
}
4747
}
4848

49-
export async function loadConfig(): Promise<Error | void> {
49+
export async function loadConfig() {
5050
// XXX: We call this twice, once here and once in MatrixChat as a prop. We call it here to ensure
5151
// granular settings are loaded correctly and to avoid duplicating the override logic for the theme.
5252
//
5353
// Note: this isn't called twice for some wrappers, like the Jitsi wrapper.
54-
SdkConfig.put(PlatformPeg.get().getConfig() || {});
54+
SdkConfig.put(await PlatformPeg.get().getConfig() || {});
5555
}
5656

5757
export function loadOlm(): Promise<void> {

0 commit comments

Comments
 (0)