From 6a5268f09ba6182a899ad6ef2eadc652124e6e4a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 8 Apr 2020 19:36:06 +0100 Subject: [PATCH] fix loadConfig Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/vector/init.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/init.tsx b/src/vector/init.tsx index 4792776248..a0fe3f4def 100644 --- a/src/vector/init.tsx +++ b/src/vector/init.tsx @@ -46,12 +46,12 @@ export function preparePlatform() { } } -export async function loadConfig(): Promise { +export async function loadConfig() { // XXX: We call this twice, once here and once in MatrixChat as a prop. We call it here to ensure // granular settings are loaded correctly and to avoid duplicating the override logic for the theme. // // Note: this isn't called twice for some wrappers, like the Jitsi wrapper. - SdkConfig.put(PlatformPeg.get().getConfig() || {}); + SdkConfig.put(await PlatformPeg.get().getConfig() || {}); } export function loadOlm(): Promise {