HomePhabricator
Diffusion Comm 2e14a6ae2beb

[lib] Send primary device logout message to secondary devices

Description

[lib] Send primary device logout message to secondary devices

Summary:
Primary device, before logging out itself, sends logout request to all secondary devices.

The logic is analogous to useSecondaryDeviceLogOut() hook, but this time recipients are secondary devices,
and sender is the primary device.

Depends on D12637

Test Plan:
Logged in on 3 devices:

  • Physical iPhone as primary device
  • Native Simulator as secondary device 1
  • Web as secondary device 2

Pressed the "Primary device logout" dev button on the primary device.
Received console log on both Simulator and web about primary logout (introduced in D12636)

Reviewers: kamil

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Tue, Jul 2, 4:39 AM
Reviewer
kamil
Differential Revision
D12638: [lib] Send primary device logout message to secondary devices
Parents
rCOMM7b122b94885a: [lib] Extract handling Olm P2P messages to a separate function
Branches
Unknown
Tags
Unknown