anonymousland-synapse/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 Replace instance variations of homeserver with correct case/spacing 2019-11-12 13:08:12 +00:00
api Support SAML in the user interactive authentication workflow. (#7102) 2020-04-01 08:48:00 -04:00
app Fix starting workers when federation sending not split out. 2020-03-31 11:25:21 +01:00
appservice Clean up newline quote marks around the codebase (#6362) 2019-11-21 12:00:14 +00:00
config Fix a small typo in the metrics_flags config option. (#7171) 2020-03-30 17:38:21 +01:00
crypto Clean up some LoggingContext stuff (#7120) 2020-03-24 14:45:33 +00:00
events Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
federation Move catchup of replication streams to worker. (#7024) 2020-03-25 14:54:01 +00:00
groups Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) 2020-02-21 07:15:07 -05:00
handlers Support SAML in the user interactive authentication workflow. (#7102) 2020-04-01 08:48:00 -04:00
http Fix "'NoneType' has no attribute start|stop" logcontext errors (#7181) 2020-03-31 15:18:41 +01:00
logging Fix "'NoneType' has no attribute start|stop" logcontext errors (#7181) 2020-03-31 15:18:41 +01:00
metrics Add prometheus metrics for the number of active pushers (#7103) 2020-03-19 10:00:24 +00:00
module_api Factor out complete_sso_login and expose it to the Module API 2020-03-03 10:54:44 +00:00
push Fix concurrent modification errors in pusher metrics (#7106) 2020-03-19 10:28:49 +00:00
replication Remove connections per replication stream metric. (#7195) 2020-04-01 10:40:46 +01:00
res/templates Support SAML in the user interactive authentication workflow. (#7102) 2020-04-01 08:48:00 -04:00
rest Support SAML in the user interactive authentication workflow. (#7102) 2020-04-01 08:48:00 -04:00
server_notices Add local_current_membership table (#6655) 2020-01-15 14:59:33 +00:00
spam_checker_api Add type hints to the spam check module (#6915) 2020-02-14 12:49:40 -05:00
state Improve get auth chain difference algorithm. (#7095) 2020-03-18 16:46:41 +00:00
static Improve the UX of the login fallback when using SSO (#7152) 2020-03-27 20:19:54 +00:00
storage Fix device list update stream ids going backward (#7158) 2020-04-03 10:40:22 +01:00
streams Bump version of mypy 2019-12-12 15:21:12 +00:00
util Rewrite prune_old_outbound_device_pokes for efficiency (#7159) 2020-03-30 19:06:52 +01:00
__init__.py 1.12.1 2020-04-02 11:32:16 +01:00
event_auth.py Remove special auth and redaction rules for aliases events in experimental room ver. (#7037) 2020-03-09 08:58:25 -04:00
notifier.py Wake up transaction queue when remote server comes back online (#6706) 2020-01-17 10:27:19 +00:00
python_dependencies.py Type defintions for use in refactoring for redaction changes (#6803) 2020-01-30 11:25:59 +00:00
secrets.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
server.py Fix a bug which could cause incorrect 'cyclic dependency' error. (#7178) 2020-03-31 13:09:16 +01:00
server.pyi Remove usage of "conn_id" for presence. (#7128) 2020-03-30 16:37:24 +01:00
types.py Validate the alt_aliases property of canonical alias events (#6971) 2020-03-03 07:12:45 -05:00
visibility.py Refactor a bit 2020-03-11 18:49:41 +00:00