[lib] resend messages after race condition
Summary:
ENG-6982
Depends on D13031
Test Plan:
- Create a session between devices A and B
- On B comment out sending confirmation.
- Send some messages from A to B
- From B to A send a session request with the same session counter to trigger resolving the race condition
- Test that all messages are sent again and decrypted successfully
Reviewers: tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13032