issue: ENG-7531
Because keyserverStore is excluded from being wiped by resetUserSpecificState on both web and native, we need to handle it in its reducer.
We wipe it on login and register actions for the same reason why we wipe all other stores - in case logout success doesn't manage to come before the user manages to login, we don't want the second user to see the data of the previous user
Details
Details
- Reviewers
michal tomek kamil - Commits
- rCOMM8ba944173c98: [lib] Wipe keyserver store on login
Forced logout siccess to be discarded (this is how I initially encountered the bug - identityInvalidSessionDowngrade would discard the action)
Before my changes, if I logged onto a user, I could see in their keyserver list all keyservers the previous user had added
After my changes, the second user had only the auth keyserver in their store
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/reducers/keyserver-reducer.js | ||
---|---|---|
443–444 ↗ | (On Diff #38444) | We don't want a recovery login to wipe redux |