[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
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