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

Fix bugs in the /keys/changes api #1921

Merged
merged 1 commit into from Feb 15, 2017
Merged

Fix bugs in the /keys/changes api #1921

merged 1 commit into from Feb 15, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Feb 15, 2017

  • 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.

* `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.
@erikjohnston
Copy link
Member

LGTM

@richvdh richvdh merged commit 7dcbcca into develop Feb 15, 2017
@richvdh richvdh deleted the rav/fix_key_changes branch March 8, 2017 15:14
erikjohnston added a commit that referenced this pull request Mar 13, 2017
Changes in synapse v0.19.3-rc1 (2017-03-08)
===========================================

Features:

* Add some administration functionalities. Thanks to morteza-araby! (PR #1784)

Changes:

* Reduce database table sizes (PR #1873, #1916, #1923, #1963)
* Update contrib/ to not use syutil. Thanks to andrewshadura! (PR #1907)
* Don't fetch current state when sending an event in common case (PR #1955)

Bug fixes:

* Fix synapse_port_db failure. Thanks to Pneumaticat! (PR #1904)
* Fix caching to not cache error responses (PR #1913)
* Fix APIs to make kick & ban reasons work (PR #1917)
* Fix bugs in the /keys/changes api (PR #1921)
* Fix bug where users couldn't forget rooms they were banned from (PR #1922)
* Fix issue with long language values in pushers API (PR #1925)
* Fix a race in transaction queue (PR #1930)
* Fix dynamic thumbnailing to preserve aspect ratio. Thanks to jkolo! (PR
  #1945)
* Fix device list update to not constantly resync (PR #1964)
* Fix potential for huge memory usage when getting device that have
  changed (PR #1969)
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.

None yet

2 participants