Skip to content

Commit c825ab0

Browse files
authored
Add comment about why we call SdkConfig twice
Signed-off-by: Travis Ralston <travpc@gmail.com>
1 parent eb40de4 commit c825ab0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/vector/index.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ async function loadApp() {
263263
} catch (e) {
264264
configError = e;
265265
}
266+
267+
// XXX: We call this twice, once here and once in MatrixChat as a prop. We call it here to ensure
268+
// granular settings are loaded correctly and to avoid duplicating the override logic for the theme.
266269
SdkConfig.put(configJson);
267270

268271
// don't try to redirect to the native apps if we're

0 commit comments

Comments
 (0)