[lib] resend messages after session creation request
Summary:
ENG-6982.
The code here is executed in two cases:
- First session request - this call is a no-op because we haven't sent any Outbound messages yet.
- Session request with higher session - this means that the device that sent the request has a malformed session and we need to re-encrypt and resend all not confirmed messages.
Depends on D13032
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 session request with higher session counter.
- Test that all messages are sent again and decrypted successfully
Reviewers: tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13056