Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Track presence state per-device and combine to a user state. (#16066) | Patrick Cloke | 2023-09-05 | 1 | -1/+0 |
| | | | | | | | | | | | Tracks presence on an individual per-device basis and combine the per-device state into a per-user state. This should help in situations where a user has multiple devices with conflicting status (e.g. one is syncing with unavailable and one is syncing with online). The tie-breaking is done by priority: BUSY > ONLINE > UNAVAILABLE > OFFLINE | ||||
* | Combine logic about not overriding BUSY presence. (#16170) | Patrick Cloke | 2023-08-28 | 1 | -0/+1 |
Simplify some of the presence code by reducing duplicated code between worker & non-worker modes. The main change is to push some of the logic from `user_syncing` into `set_state`. This is done by passing whether the user is setting the presence via a `/sync` with a new `is_sync` flag to `set_state`. If this is `true` some additional logic is performed: * Don't override `busy` presence. * Update the `last_user_sync_ts`. * Never update the status message. |