HomePhabricator
Diffusion Comm 715cdf31911a

[lib] Replace cloneError() with SendMessageError

Description

[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

  1. Comment out error swallowing in peer-list-hooks.js
  2. Change identity address to some random address
  3. Remove device lists by dispatching an action as described in the issue
  4. Try to send a message
  5. 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

Details

Provenance
angelikaAuthored on Mon, Nov 4, 12:35 PM
Reviewer
kamil
Differential Revision
D13862: [lib] Replace cloneError() with SendMessageError
Parents
rCOMMf6dbe5552fdc: [native] Get rid of bottomSheetPaddingTop in ConnectFarcasterBottomSheet
Branches
Unknown
Tags
Unknown