mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
update delete wallet function to handle wallet isar data
This commit is contained in:
parent
203cd12678
commit
880c82ba72
1 changed files with 4 additions and 0 deletions
|
@ -3,6 +3,7 @@ import 'dart:convert';
|
|||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_libmonero/monero/monero.dart';
|
||||
import 'package:flutter_libmonero/wownero/wownero.dart';
|
||||
import 'package:stackwallet/db/main_db.dart';
|
||||
import 'package:stackwallet/hive/db.dart';
|
||||
import 'package:stackwallet/services/coins/epiccash/epiccash_wallet.dart';
|
||||
import 'package:stackwallet/services/notifications_service.dart';
|
||||
|
@ -385,6 +386,9 @@ class WalletsService extends ChangeNotifier {
|
|||
level: LogLevel.Info);
|
||||
}
|
||||
|
||||
// delete wallet data in main db
|
||||
await MainDB.instance.deleteWalletBlockchainData(walletId);
|
||||
|
||||
// box data may currently still be read/written to if wallet was refreshing
|
||||
// when delete was requested so instead of deleting now we mark the wallet
|
||||
// as needs delete by adding it's id to a list which gets checked on app start
|
||||
|
|
Loading…
Reference in a new issue