Implement account deletion

This commit is contained in:
2025-05-19 21:55:49 +02:00
parent cbe2d5a556
commit 71993c2686
3 changed files with 36 additions and 3 deletions

View File

@@ -193,8 +193,7 @@ class CoreCubit extends Cubit<CoreState> {
cancelStreams();
try {
// TODO
//await db.deleteAccount(account);
await GetIt.I.get<OkaneDatabase>().accountsDao.removeAccount(account);
} finally {
emit(state.copyWith(isDeletingAccount: false));
}