MatrixSynapse/synapse
Richard van der Hoff daa1ac89a0
Fix device list update stream ids going backward (#7158)
Occasionally we could get a federation device list update transaction which
looked like:

```
[
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D2', 'prev_id': [], 'stream_id': 12, 'deleted': True}},
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D1', 'prev_id': [12], 'stream_id': 11, 'deleted': True}},
    {'edu_type': 'm.device_list_update', 'content': {'user_id': '@user:test', 'device_id': 'D3', 'prev_id': [11], 'stream_id': 13, 'deleted': True}}
]
```

Having `stream_ids` which are lower than `prev_ids` looks odd. It might work
(I'm not actually sure), but in any case it doesn't seem like a reasonable
thing to expect other implementations to support.
2020-04-03 10:40:22 +01:00
..
_scripts
api
app
appservice
config
crypto
events
federation
groups
handlers
http
logging
metrics
module_api
push
replication
res/templates
rest
server_notices
spam_checker_api
state
static
storage Fix device list update stream ids going backward (#7158) 2020-04-03 10:40:22 +01:00
streams
util
__init__.py
event_auth.py
notifier.py
python_dependencies.py
secrets.py
server.py
server.pyi
types.py
visibility.py