issue: [[https://linear.app/comm/issue/ENG-8190/[inka][june]-userstore-syncing-stop-processing-data-from-secondary | ENG-8190]]
After extracting user ids from server message we want to dispatch processNewUserIDsActionType to create entries for these ids in the user store. Then, UserInfosHandler will fetch missing user infos.
Details
Details
- Reviewers
tomek kamil - Commits
- rCOMMa5cc4bae8fe7: [lib] Dispatch processNewUserIDsActionType
Tested that the action is dispatched both for socket messages and http api responses
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/socket/user-infos-handler.react.js | ||
---|---|---|
14–35 ↗ | (On Diff #41035) | Up to you, but we can useDispatch() here instead of passing the value as a prop |
Comment Actions
Actually I should avoid dispatching the action if userIDs is empty. This results in a lot of unnecessary actions, mostly from PONG message
lib/socket/user-infos-handler.react.js | ||
---|---|---|
14–35 ↗ | (On Diff #41035) | Personally I think this would be cleaner |