Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track and reset KX with long offline users #116

Merged
merged 14 commits into from Feb 14, 2023

Commits on Jan 27, 2022

  1. client: stop remoteUser init on client ctx.Done()

    This fixes a bug that prevented client shutdown if the client failed to
    completely initialize during address book loading.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    362b2df View commit details
    Browse the repository at this point in the history
  2. clientdb: check kx file name before loading to list

    This ensures files that are unlikely to be KX files are not loaded
    during startup.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    807e26b View commit details
    Browse the repository at this point in the history
  3. brclient: show user ratchet enc/dec times

    This is added to the /addressbook command, as an optional argument to
    display the addressbook entry of a particular user.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    6ab400e View commit details
    Browse the repository at this point in the history
  4. brclient: add /rresetold command

    This resets all clients with ratchets that have not received messages in
    a given age.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    c4cc7ea View commit details
    Browse the repository at this point in the history
  5. brclient: add /ls userslastmsgtime command

    This allows showing the last time a message was received from all users.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    0ba63a0 View commit details
    Browse the repository at this point in the history
  6. client: automatically reset KXs if offline for too long

    This adds a check after connecting to the server to verify if the local
    client has been offline for longer than the server's message retention
    policy. If true, then the client sends a reset KX command to all known
    users.
    
    This is needed to prevent a situation where, after being offline for too
    long, all of the client's ratchets are broken due to lost messages.
    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    5e39d98 View commit details
    Browse the repository at this point in the history
  7. brclient: add warning on all ratchets resets

    miki committed Jan 27, 2022
    Configuration menu
    Copy the full SHA
    ee5f8cb View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    58e3a5b View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2023

  1. client: parametrize kx list cleanup

    Instead of using a fixed 7-day interval, use the server expiration
    policy.
    miki committed Jan 30, 2023
    Configuration menu
    Copy the full SHA
    9144ded View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2023

  1. client: listen on startup kxs in parallel

    Improves performance when there are many KXs.
    miki committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    945fce1 View commit details
    Browse the repository at this point in the history
  2. CI: expose test logs

    Needed to debug test failures
    miki committed Feb 2, 2023
    Configuration menu
    Copy the full SHA
    eb5a0c0 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2023

  1. client: expose ratchet debug info

    miki committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    c38e6ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a81cf02 View commit details
    Browse the repository at this point in the history
  3. bruig: show ratchet debug info in user profile

    Also add a confirmation modal to the block user action.
    miki committed Feb 3, 2023
    Configuration menu
    Copy the full SHA
    7da4b8a View commit details
    Browse the repository at this point in the history