HomePhabricator
Diffusion Comm a98182e55a85

[lib] Send logout message to primary device in useSecondaryDeviceLogOut

Description

[lib] Send logout message to primary device in useSecondaryDeviceLogOut

Summary:

  • Added Tunnelbroker message types, the same way as in D12133
  • Extend useSecondaryDeviceLogOut() to send Olm-encrypted TB message to the primary device before performing actual logout

Depends on D12223, D12240

Test Plan:
Pressing "Secondary device logout" dev button makes primary device print a log:

LOG  Decrypted message from device mJc0HgRtPM1WTp+SWy/VE4C+243IznJPf2TGvriZ4A4: {"type":"LOG_OUT_SECONDARY_DEVICE"}

Reviewers: kamil

Reviewed By: kamil

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D12224

Details

Provenance
bartekAuthored on May 28 2024, 3:57 AM
Reviewer
kamil
Differential Revision
D12224: [lib] Send logout message to primary device in useSecondaryDeviceLogOut
Parents
rCOMM5946d727ba67: [lib] Add unit tests for functions modifying device list
Branches
Unknown
Tags
Unknown