fix: Load settings on startup

This commit is contained in:
Sorunome 2021-01-19 16:58:30 +01:00
parent 03b00b7d26
commit 6906832bc7
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C

View File

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