diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-02-14 13:59:50 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-02-14 13:59:50 +0000 |
commit | fc2f29c1d071ff9b140f10ca46f463f6638d8357 (patch) | |
tree | 60343967a159e8cb595ad3374ca71eb2528f69b8 /tests/api | |
parent | Merge pull request #1914 from matrix-org/erikj/cache_presence (diff) | |
download | synapse-fc2f29c1d071ff9b140f10ca46f463f6638d8357.tar.xz |
Fix bugs in the /keys/changes api
* `get_forward_extremeties_for_room` takes a numeric `stream_ordering`. We were passing a `RoomStreamToken`, which meant that it returned the *current* extremities, rather than those corresponding to the `from_token`. However: * `get_state_ids_for_events` required a second ('types') parameter; this meant that a `TypeError` was thrown and we ended up acting as though there was *no* prev state. * `get_state_ids_for_events` actually returns a map from event_id to state dictionary - just looking up the state keys in it again meant that we acted as though there was no prev state. We now check if each member's state has changed since *any* of the extremities. Also add/fix some comments.
Diffstat (limited to 'tests/api')
0 files changed, 0 insertions, 0 deletions