[lib] Replace cloneError() with SendMessageError
Summary: https://linear.app/comm/issue/ENG-9730/native-crashes-when-call-to-identity-fails
Test Plan:
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
Reviewers: kamil, tomek
Reviewed By: kamil
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13862