-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: align extension storage 'set' and 'observeAll' with pouchdb stor…
…age behavior (#1597) * fix: align extension storage 'set' and 'observeAll' with pouchdb storage behavior deleting a wallet does: 1. delete it from repository 2. check remaining wallets, activate if some wallet exists there was a bug where step 2. would find the wallet that was just deleted and try to activate it, because extension storage 'observeAll' emits an slightly later * fix: apply fromSerializableObject to objects emitted from storageChange$ set()/get() applies toSerializableObject/fromSerializableObject respectively storageChange$ did not, resulting in emitting slightly different objects that were not processed by fromSerializableObject util this broke disabling accounts that were just enabled and possibly some other functionality * fix: activate any wallet when none is active in order to recover from wallet activation bugs for example, a crash after wallet deactivation but before activating another wallet fix: do not explicitly deactivate wallet when switching to another explicitly deactivating will trigger a recovery mechanism that will activate any wallet
- Loading branch information
1 parent
140ff02
commit 9694f96
Showing
4 changed files
with
102 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters