Details
Details
Force the error when sending message:
0. Create DM with some user
- Comment out error swallowing in peer-list-hooks.js
- Change identity address to some random address
- Remove device lists by dispatching an action as described in the issue
- Try to send a message
- Verify that the app doesn't crash and user can retry sending the message and you can see the error nicely in the logs
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Branch
- graszka22/ENG-9730
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
native/chat/reaction-message-utils.js | ||
---|---|---|
118–122 | Looks like this type is not correct, but was not correct in the past either, see here Wondering, if we should use SendMessageError type in /lib/types/redux-types.js to catch things like this? I am talking about this three specific actions:
|
native/chat/reaction-message-utils.js | ||
---|---|---|
118–122 |
Good call... yeah, I think that would be best. In addition to the changes @angelika made here to lib/types/redux-types.js, I think we should update the place(s) where the error is thrown... looks to be in lib/hooks/input-state-container-hooks.js. Hopefully we can remove the any-cast there |
lib/hooks/input-state-container-hooks.js | ||
---|---|---|
255–263 ↗ | (On Diff #45644) | thanks for doing this |