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

Move Device Tracking Data to Crypto Store #594

Merged
merged 22 commits into from
Jan 29, 2018
Merged

Commits on Jan 11, 2018

  1. Initial attempt at device tracking -> indexeddb

     * Message sending works again, but
    
     * Marking multiple devices known (ie. 'send anyway') is very slow
       because it writes all device info out each time
     * Support for non-indexedb stores not written yet
     * No migration
    dbkr committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    83e4aa2 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2018

  1. Configuration menu
    Copy the full SHA
    29d44f8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60052f5 View commit details
    Browse the repository at this point in the history
  3. Fix lint

    dbkr committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    2cdb010 View commit details
    Browse the repository at this point in the history
  4. Migrate from session store

    dbkr committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    6c1087e View commit details
    Browse the repository at this point in the history
  5. Fix migration

    dbkr committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    a94f3c7 View commit details
    Browse the repository at this point in the history
  6. Null fix & lint

    Don't end up with devices / device tracking status being null
    dbkr committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    36d7d33 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2018

  1. Make DeviceList test pass

    Includes making saveIfDirty() return a promise in case you care
    about when changes got saved (which the test does).
    dbkr committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    110f43a View commit details
    Browse the repository at this point in the history
  2. More test fixing

    Allow localstorage store to take a localstorage impl, make TestClient
    pass a cryptostore & fix True/true typo
    dbkr committed Jan 15, 2018
    Configuration menu
    Copy the full SHA
    27d28b8 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2018

  1. Make tests pass, finally.

    Mostly making tests aware of new storage format or making them
    force it to be written. Also some bugfixes like we didn't json
    encode some things in the localstorage store and we didn't
    correctly check the promise when requesting device data saves.
    dbkr committed Jan 16, 2018
    Configuration menu
    Copy the full SHA
    0174c56 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2018

  1. lint

    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    5a0997d View commit details
    Browse the repository at this point in the history
  2. more lint

    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    585ea14 View commit details
    Browse the repository at this point in the history
  3. Fix device tracking with initial /sync

     * Check whether we share an e2e room with user IDs in the 'left'
       field of /keys/changes: there's no guarantee we no longer share
       any e2e rooms with these users
     * Reset everyone's tracking status on an initial sync - just
       re-fetching device lists for all users we're currently tracking
       isn't good enough since room memberships may have changed.
     * Fix typo in test
    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    5bab864 View commit details
    Browse the repository at this point in the history
  4. More test fixing

     * Change test for new storage layer
     * Always store device keys we download, even if we weren't
       tracking the user.
    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    461acbc View commit details
    Browse the repository at this point in the history
  5. Update the catchingup flag

    It may change whilst processing the sync
    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    fb29da4 View commit details
    Browse the repository at this point in the history
  6. Return null if device data isn't set

    This is more normal, and the code doesn't expect to get empty
    objects here which is reasonable since it never sets one.
    dbkr committed Jan 17, 2018
    Configuration menu
    Copy the full SHA
    ea6974f View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2018

  1. All the copyrights

    dbkr committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    8b649ce View commit details
    Browse the repository at this point in the history
  2. Add more comments

    dbkr committed Jan 18, 2018
    Configuration menu
    Copy the full SHA
    074cfb7 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2018

  1. Hopefully address PR feedback

    dbkr committed Jan 22, 2018
    Configuration menu
    Copy the full SHA
    4fbf4f1 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2018

  1. Comment typo

    dbkr committed Jan 24, 2018
    Configuration menu
    Copy the full SHA
    8c2645c View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. Add new devices as we get them

    dbkr committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    470bd23 View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2018

  1. Fux lying comment

    dbkr committed Jan 29, 2018
    Configuration menu
    Copy the full SHA
    c3bede5 View commit details
    Browse the repository at this point in the history