fix issue where removing account could prevent application from starting

This commit is contained in:
zoe 2022-08-14 19:10:12 +02:00
parent 475e3a4210
commit af8967261e
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ class Settings {
await identities[key]!.delete();
identities.remove(key);
if (identities.isNotEmpty) {
activeIdentity = identities.keys.first;
await saveActiveIdentity(identities.keys.first);
}
return await prefs.setStringList(
identitiesKey,