Details
- Reviewers
inka kamil tomek - Commits
- rCOMM20970f6988a2: [lib] Add action type to remove peer user
The same as D12961, but this time faked relyingOnAuthoritativeKeyserver = false by reversing conditions for this flag in reducers.
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
I think we can remove relyingOnAuthoritativeKeyserver from the condition, even if we still have an authoritative keyserver why not proceed with processing P2P messages as we should, in the worst case we attempt to delete the same peer twice, but wondering what @inka is thinking.
lib/reducers/user-reducer.js | ||
---|---|---|
548–559 ↗ | (On Diff #43060) | I would inline those two as we don't call findStoreInconsistencies here |
I think we can remove relyingOnAuthoritativeKeyserver from the condition, even if we still have an authoritative keyserver why not proceed with processing P2P messages as we should, in the worst case we attempt to delete the same peer twice, but wondering what @inka is thinking.
I agree. Make sure to remove both places the condition is used
lib/reducers/aux-user-reducer.js | ||
---|---|---|
203 ↗ | (On Diff #43060) | Shouldn't we be returning removeUsersOps? |
lib/reducers/aux-user-reducer.js | ||
---|---|---|
190 ↗ | (On Diff #43107) | Confused why we don't check relyingOnAuthoritativeKeyserver here, but we do check for it in user-reducer.js below |
lib/reducers/user-reducer.js | ||
539 ↗ | (On Diff #43107) | @inka said this in their review:
Was this place missed? |
In the initial revision (https://phab.comm.dev/D12962?id=43060) there were 3 places with relyingOnAuthoritativeKeyserver check:
- before action dispatch
- in AuxUserReducer
- in UserReducer
Perhaps I misunderstood the feedback.
I was under impression that it should be removed from AuxUserReducer (my thinking when reading @kamil's feedback: "removing peer twice" -> peer list is stored in aux user store) so I removed "both conditions" (@inka's feedback) 1. and 2, leaving UserStore up to authoritative keyserver.