HomePhabricator
Diffusion Comm 3f50d089ad51

[lib] Don't swallow errors in useGetAndUpdateDeviceListsForUsers

Description

[lib] Don't swallow errors in useGetAndUpdateDeviceListsForUsers

Summary:
https://linear.app/comm/issue/ENG-9730/native-crashes-when-call-to-identity-fails

Depends on D13863

Test Plan:
Force the error when sending message:


  1. Create DM with some user
  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: tomek, kamil

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13864

Details

Provenance
angelikaAuthored on Mon, Nov 4, 12:44 PM
Reviewer
kamil
Differential Revision
D13864: [lib] Don't swallow errors in useGetAndUpdateDeviceListsForUsers
Parents
rCOMM90e919811458: [lib] Remove unecessary utils-copy-error dependency
Branches
Unknown
Tags
Unknown
References
HEAD -> master