[lib] broadcast updates when becoming aware of new device existence
Summary:
This handles two cases:
- Login - this logic will be executed on the device logged in using legacy Identity auth notifying other peers.
- Whenever becoming aware of another user - ping him to fetch our newest device list.
Note: This code will be removed in the future after fully launching secondary device auth.
Depends on D12379
Test Plan:
- Run local TB, and Identity, and make all clients connect to it.
- usingCommServicesAccessToken = true
- Login on multiple devices (2 devices of user A, 1 device of user B but A is aware of B).
- Login on a new device of user B.
- All A's and B's devices should receive a device list update.
Reviewers: bartek, tomek
Reviewed By: tomek
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D12380