mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:04:50 -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
|
@ -267,8 +267,6 @@ class ReplicationLayer(object):
|
|||
transaction = Transaction(**transaction_data)
|
||||
|
||||
pdus = [Pdu(outlier=True, **p) for p in transaction.pdus]
|
||||
for pdu in pdus:
|
||||
yield self._handle_new_pdu(destination, pdu)
|
||||
|
||||
defer.returnValue(pdus)
|
||||
|
||||
|
@ -452,15 +450,12 @@ class ReplicationLayer(object):
|
|||
)
|
||||
|
||||
logger.debug("Got content: %s", content)
|
||||
|
||||
state = [Pdu(outlier=True, **p) for p in content.get("state", [])]
|
||||
for pdu in state:
|
||||
yield self._handle_new_pdu(destination, pdu)
|
||||
|
||||
auth_chain = [
|
||||
Pdu(outlier=True, **p) for p in content.get("auth_chain", [])
|
||||
]
|
||||
for pdu in auth_chain:
|
||||
yield self._handle_new_pdu(destination, pdu)
|
||||
|
||||
defer.returnValue(state)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue