mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:46:06 -04:00
Fix bugs with invites/joins across federatiom.
Both in terms of auth and not trying to fetch missing PDUs for invites, joins etc.
This commit is contained in:
parent
2c400363e8
commit
6fea478d2e
7 changed files with 54 additions and 39 deletions
|
@ -70,7 +70,8 @@ class StateStore(SQLBaseStore):
|
|||
values={
|
||||
"room_id": event.room_id,
|
||||
"event_id": event.event_id,
|
||||
}
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
||||
for state in event.state_events.values():
|
||||
|
@ -83,7 +84,8 @@ class StateStore(SQLBaseStore):
|
|||
"type": state.type,
|
||||
"state_key": state.state_key,
|
||||
"event_id": state.event_id,
|
||||
}
|
||||
},
|
||||
or_ignore=True,
|
||||
)
|
||||
|
||||
self._simple_insert_txn(
|
||||
|
@ -92,5 +94,6 @@ class StateStore(SQLBaseStore):
|
|||
values={
|
||||
"state_group": state_group,
|
||||
"event_id": event.event_id,
|
||||
}
|
||||
},
|
||||
or_replace=True,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue