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

Add get key request support #132

Merged
merged 10 commits into from
Feb 17, 2017
Merged

Add get key request support #132

merged 10 commits into from
Feb 17, 2017

Conversation

ylecollen
Copy link
Contributor

Add the e2e devices list refresh from the /sync request

Should fix element-hq/element-web#2305

ylecollen added 9 commits February 14, 2017 17:49
Update the sync events to provide the start and the to tokens.
fix invalid test
add promises queue management like the webclient (i.e the keys download request will only trigger a request for the ones which are not yet in progress)
first implementation
fix many issues
Move the download keys promise management into a dedicated class.
add a new unit test
fix an unit test
Add missing copyrights
import java.util.List;

/**
* This class describes the device list reponse from a sync request
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response

@@ -113,8 +116,9 @@

/**
* The initial sync is complete and the store can be queried for current state.
* @param toToken the up-yo sync token
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

up-to

/**
* Devices list update
*/
public DeviceListResponse device_lists;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All other attributes are camelCased. Why not this one?

Update after code review
@ylecollen ylecollen merged commit 1d77f6d into develop Feb 17, 2017
@ylecollen ylecollen deleted the add_get_key_request_support branch February 17, 2017 14:40
List<Room> e2eRooms = new ArrayList<>();

for(Room r : rooms) {
if (r.isEncrypted()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

matrix-js-sdk and matrix-ios-sdk ignore any rooms which the user has left

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stale device lists
2 participants