mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 20:28:59 -05:00
Merge branch 'release-v0.10.0' into develop
Conflicts: synapse/handlers/auth.py synapse/python_dependencies.py synapse/rest/client/v1/login.py
This commit is contained in:
commit
a7122692d9
17 changed files with 262 additions and 73 deletions
|
|
@ -331,7 +331,10 @@ class EventFederationStore(SQLBaseStore):
|
|||
|
||||
txn.executemany(
|
||||
query,
|
||||
[(ev.event_id, ev.room_id, ev.event_id) for ev in events]
|
||||
[
|
||||
(ev.event_id, ev.room_id, ev.event_id) for ev in events
|
||||
if not ev.internal_metadata.is_outlier()
|
||||
]
|
||||
)
|
||||
|
||||
query = (
|
||||
|
|
@ -358,7 +361,10 @@ class EventFederationStore(SQLBaseStore):
|
|||
)
|
||||
txn.executemany(
|
||||
query,
|
||||
[(ev.event_id, ev.room_id) for ev in events]
|
||||
[
|
||||
(ev.event_id, ev.room_id) for ev in events
|
||||
if not ev.internal_metadata.is_outlier()
|
||||
]
|
||||
)
|
||||
|
||||
for room_id in events_by_room:
|
||||
|
|
|
|||
|
|
@ -403,8 +403,15 @@ class StateStore(SQLBaseStore):
|
|||
state_dict = results[group]
|
||||
|
||||
for event_id in state_ids:
|
||||
state_event = state_events[event_id]
|
||||
state_dict[(state_event.type, state_event.state_key)] = state_event
|
||||
try:
|
||||
state_event = state_events[event_id]
|
||||
state_dict[(state_event.type, state_event.state_key)] = state_event
|
||||
except KeyError:
|
||||
# Hmm. So we do don't have that state event? Interesting.
|
||||
logger.warn(
|
||||
"Can't find state event %r for state group %r",
|
||||
event_id, group,
|
||||
)
|
||||
|
||||
self._state_group_cache.update(
|
||||
cache_seq_num,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue