[native] Remove dangling device after QR auth failure
Summary:
Address ENG-10309.
Try reverting device list update after the process failed at a later point.
Test Plan:
- Replaced await sendDeviceListUpdateSuccessMessage() with throw new Error('foo')
- After alert is shown, verified that:
- No new device is present on the Linked Devices screen
- Checked DynamoDB - two device list updates are present: the first update added a new device and the second update removed it. Before this diff, only the former update was present, resulting in dangling device on the list.
Reviewers: tomek, kamil, ashoat
Reviewed By: ashoat
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D14431