issue: https://linear.app/comm/issue/ENG-5722/update-freshmessagestore-function
freshMessageStore should return currentAsOf for all keyservers
Details
Tested that after the setInitialReduxState action the currentAsOf field is correct - a "map" from keyserver id to number.
This tests this function, because freshMessageStore is called by the keyserver in getInitialReduxStateResponder which returns the initial state. The states from all keyservers are then merged in getInitialReduxState, and the returnd value is dispatched with setInitialReduxState action.
I also logged to the console the value returned from freshMessageStore in getInitialReduxStateResponder and checked that it is correct.
I also logged in and checked that the currentAsOf in messageStore is correct after logInActionTypes.success
Diff Detail
- Repository
- rCOMM Comm
- Branch
- inka/reducers
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
keyserver/src/responders/redux-state-responders.js | ||
---|---|---|
171 ↗ | (On Diff #33508) | For future reference, the new Flow requires an annotation here |
keyserver/src/responders/redux-state-responders.js | ||
---|---|---|
171 ↗ | (On Diff #33508) | Actually, hmmm... I guess this isn't always required, as I'm not seeing any errors after rebasing. Sorry for the distraction! |