issue: ENG-5812
We want to remove drafts of threads related to the keyservers the action was dispatched for
Details
Details
- Reviewers
michal kamil ginsu - Commits
- rCOMM1382d11ea838: [lib] Refactor draft reducer
Ran the provided test, tested that when a user logs out the drafts are deleted
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/login_reducers
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
lib/reducers/draft-reducer.js | ||
---|---|---|
50 | As mentioned in other diffs, not sure we need to change anything for logOutActionTypes.success |
lib/reducers/draft-reducer.js | ||
---|---|---|
59 ↗ | (On Diff #35772) | Why do we remove drafts from store on keyserver auth? |
lib/reducers/draft-reducer.js | ||
---|---|---|
59 ↗ | (On Diff #35772) | We remove most data on keyserver login and set new session. I was mirroring this by removing data related to the keyserver the user has logged in to using keyserverAuthActionTypes. |
lib/reducers/draft-reducer.js | ||
---|---|---|
59 ↗ | (On Diff #35772) | Because drafts are local-only and are not provided by the keyserver on login. Let's avoid removing drafts from the store on keyserver auth |