forked-synapse/synapse
Erik Johnston 8cb44da4aa 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.
2018-03-07 11:55:31 +00:00
..
api Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
app Calculate push actions on worker 2018-02-28 18:02:30 +00:00
appservice Extract group_id from the dict for multiple use 2017-11-16 18:18:30 +00:00
config Add replication http endpoint for event sending 2018-02-07 10:32:32 +00:00
crypto Fix 500 when joining matrix-dev 2017-11-29 16:00:46 +00:00
events Remove context.push_actions 2018-02-15 15:47:06 +00:00
federation Add federation_domain_whitelist option (#2820) 2018-01-22 19:11:18 +01:00
groups Namespace visibility options for groups 2017-11-09 15:27:18 +00:00
handlers Fix race in sync when joining room 2018-03-07 11:55:31 +00:00
http Merge pull request #2858 from matrix-org/rav/purge_updates 2018-02-09 14:11:00 +00:00
metrics report metrics on number of cache evictions 2018-02-05 15:34:01 +00:00
module_api Delete devices in various logout situations 2017-11-29 16:44:35 +00:00
push Update comments 2018-02-21 11:29:49 +00:00
replication Split Directory store 2018-03-05 15:11:30 +00:00
rest Provide a means to pass a timestamp to purge_history 2018-03-05 14:37:23 +00:00
static/client Updates to fallback CAS login to do new token login 2015-11-06 09:57:17 +00:00
storage Fix race in sync when joining room 2018-03-07 11:55:31 +00:00
streams replace 'except:' with 'except Exception:' 2017-10-23 15:52:32 +01:00
util Rewrite make_deferred_yieldable avoiding inlineCallbacks 2018-03-01 12:40:05 +00:00
__init__.py Bump version and changelog 2018-01-05 10:54:01 +00:00
event_auth.py Fix templating error with unban permission message 2018-01-07 19:52:58 -07:00
notifier.py Clear logcontext before starting fed txn queue runner 2017-11-28 15:26:14 +00:00
python_dependencies.py use bcrypt.checkpw 2018-03-05 18:02:59 +01:00
server.py Move RoomMemberHandler out of Handlers 2018-03-01 14:36:50 +00:00
server.pyi Factor out resolve_state_groups to a separate handler 2018-02-01 12:40:04 +00:00
state.py Merge pull request #2864 from matrix-org/rav/persist_event_caching 2018-02-13 14:45:57 +00:00
types.py Add replication http endpoint for event sending 2018-02-07 10:32:32 +00:00
visibility.py Remove preserve_context_over_{fn, deferred} 2017-11-14 11:22:42 +00:00