Page MenuHomePhabricator

[lib] resend messages after session creation request
ClosedPublic

Authored by kamil on Aug 13 2024, 4:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 26, 6:36 AM
Unknown Object (File)
Sat, Mar 22, 2:58 AM
Unknown Object (File)
Tue, Mar 11, 2:46 PM
Unknown Object (File)
Wed, Mar 5, 2:14 PM
Unknown Object (File)
Feb 22 2025, 11:13 PM
Unknown Object (File)
Feb 22 2025, 11:13 PM
Unknown Object (File)
Feb 22 2025, 11:11 PM
Unknown Object (File)
Feb 22 2025, 11:09 PM
Subscribers

Details

Summary

ENG-6982.

The code here is executed in two cases:

  1. First session request - this call is a no-op because we haven't sent any Outbound messages yet.
  2. 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
  1. Create a session between devices A and B
  2. On B comment out sending confirmation.
  3. Send some messages from A to B
  4. From B to A send session request with higher session counter.
  5. Test that all messages are sent again and decrypted successfully

Diff Detail

Repository
rCOMM Comm
Branch
resending-3
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Aug 13 2024, 4:49 AM
kamil edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Aug 19 2024, 5:55 AM