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)
Sun, Dec 22, 3:51 PM
Unknown Object (File)
Sun, Dec 22, 3:51 PM
Unknown Object (File)
Sun, Dec 22, 3:51 PM
Unknown Object (File)
Sun, Dec 22, 3:50 PM
Unknown Object (File)
Tue, Dec 10, 10:00 AM
Unknown Object (File)
Fri, Nov 29, 6:01 PM
Unknown Object (File)
Nov 22 2024, 11:33 PM
Unknown Object (File)
Nov 22 2024, 4:33 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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