add lemmy.ml instance at startup if there's no instances added

This commit is contained in:
krawieck 2020-12-03 22:43:26 +01:00
parent 9a7c423c21
commit fac0fbb0e1
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ Future<void> main() async {
final accountsStore = AccountsStore();
await accountsStore.load();
if (accountsStore.instances.isEmpty) {
accountsStore.addInstance('lemmy.ml');
}
runApp(
MultiProvider(
providers: [