Merge branch 'soru/switch-config' into 'main'
fix: Load settings on startup See merge request famedly/fluffychat!348
This commit is contained in:
commit
80565d0d25
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue