diff options
author | Erik Johnston <erik@matrix.org> | 2018-03-05 12:06:19 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-03-07 11:55:31 +0000 |
commit | 8cb44da4aa569188faa2a94aae6bc093aa8e22ec (patch) | |
tree | a391883f6c38cecbdd7dba77e7b0ee5f84185e5e /res/templates/mail-Vector.css | |
parent | Merge pull request #2949 from krombel/use_bcrypt_checkpw (diff) | |
download | synapse-8cb44da4aa569188faa2a94aae6bc093aa8e22ec.tar.xz |
Fix race in sync when joining room
The race happens when the user joins a room at the same time as doing a sync. We fetch the current token and then get the rooms the user is in. If the join happens after the current token, but before we get the rooms we end up sending down a partial room entry in the sync. This is fixed by looking at the stream ordering of the membership returned by get_rooms_for_user, and handling the case when that stream ordering is after the current token.
Diffstat (limited to 'res/templates/mail-Vector.css')
0 files changed, 0 insertions, 0 deletions