Merge branch 'soru/switch-config' into 'main'

fix: Load settings on startup

See merge request famedly/fluffychat!348
This commit is contained in:
Krille Fear 2021-01-19 16:23:39 +00:00
commit 2c3c0dbdb2

View File

@ -273,7 +273,11 @@ class MatrixState extends State<Matrix> {
void initState() { void initState() {
super.initState(); super.initState();
initMatrix(); initMatrix();
if (PlatformInfos.isWeb) initConfig().then((_) => initSettings()); if (PlatformInfos.isWeb) {
initConfig().then((_) => initSettings());
} else {
initSettings();
}
} }
Future<void> initConfig() async { Future<void> initConfig() async {