issue: ENG-7742
This handler extracts user ids from server messages that come over the socket.
Details
Details
Sent a message from user1 and checked that updates/server messages on user2 are parsed correctly - correct user ids are extracted.
Tested that no errors show up
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/socket/user-infos-handler.react.js | ||
---|---|---|
1 ↗ | (On Diff #40222) | Nit: newline below Flow declaration |
3 ↗ | (On Diff #40222) | We usually type React.useEffect directly |
5–9 ↗ | (On Diff #40222) | Merge imports |
17 ↗ | (On Diff #40222) | Would it be good to rename this to be clear it only handles UserInfos that come in through the socket? |
lib/socket/user-infos-handler.react.js | ||
---|---|---|
13–14 ↗ | (On Diff #40222) | It's more convenient to type these as returning mixed |