Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Combine logic about not overriding BUSY presence. #16170

Merged
merged 7 commits into from
Aug 28, 2023

Commits on Aug 23, 2023

  1. Combine logic about not overriding BUSY presence.

    Move duplicated logic from main & worker user_syncing methods to
    set_state, which is called direclty on main and over replication
    for workers.
    
    The new logic is driven by a is_sync flag, which avoids overriding
    the "busy" presence state.
    clokep committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    3ea532e View commit details
    Browse the repository at this point in the history
  2. Combine setting the last_user_sync_ts.

    Building on the previous commit, last_user_sync_ts can now be set
    based on the is_sync flag.
    clokep committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    bd473d7 View commit details
    Browse the repository at this point in the history
  3. Remove unneeded clause about whether the busy presence MSC is enabled.

    VALID_PRESENCE only contains the busy presence if it is enabled, thus
    presence can only be equal to "busy" if it is already enabled.
    clokep committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    63b8361 View commit details
    Browse the repository at this point in the history
  4. Remove an unneeded update_states call.

    See inline comments, but the user_syncing method already calls
    set_state(...) to update the presence state, we don't need custom
    logic for the offline -> online transition.
    clokep committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    c7056a2 View commit details
    Browse the repository at this point in the history
  5. Newsfragment

    clokep committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    09395f4 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Configuration menu
    Copy the full SHA
    9574590 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d93c937 View commit details
    Browse the repository at this point in the history