Implement account deletion
This commit is contained in:
1 parent
cbe2d5a556
commit
71993c2686
3 files changed
+36
-3
No files matched your search
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user