[lib] fix sending retried message twice
Summary:
ENG-9279.
This was rebase issue from D13327.
Depends on D13327
Test Plan:
- Open apps on devices A, B and C.
- On A, add test code that will throw test error when sending message to device C.
- On A create a thread with B and C, and send message (message in UI visible as failed, not visible on C, visible on B).
- Remove testing code and hit retry button.
- Sent status on A, visible on C, not visible twice on B.
Reviewers: tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13352