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

Rework device list tracking logic #425

Merged
merged 1 commit into from
Apr 25, 2017
Merged

Rework device list tracking logic #425

merged 1 commit into from
Apr 25, 2017

Commits on Apr 25, 2017

  1. Rework device list tracking logic

    Yet another attempt at fixing
    element-hq/element-web#2305.
    
    This now implements the algorithm described at
    http://matrix.org/speculator/spec/HEAD/client_server/unstable.html#tracking-the-device-list-for-a-user:
    
    * We now keep a flag to tell us which users' device lists we are tracking. That
      makes it much easier to figure out whether we should care about device-update
      notifications from /sync (thereby fixing
      element-hq/element-web#3588).
    
    * We use the same flag to indicate whether the device list for a particular
      user is out of date. Previously we did this implicitly by only updating the
      stored sync token when the list had been updated, but that was somewhat
      complicated, and in any case didn't help in cases where we initiated the key
      download due to a user joining an encrypted room.
    
    Also fixes element-hq/element-web#3310.
    richvdh committed Apr 25, 2017
    Configuration menu
    Copy the full SHA
    ab19b9b View commit details
    Browse the repository at this point in the history