summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-29 16:15:16 +0000
committerErik Johnston <erik@matrix.org>2019-01-29 16:54:23 +0000
commit55d90248356b0068b201c5be7298e0f3ae1c8ace (patch)
tree33807078fde41ebc60653288908bfef6d177a62a /synapse/federation
parentRemove event ID usage when checking if new room (diff)
downloadsynapse-55d90248356b0068b201c5be7298e0f3ae1c8ace.tar.xz
Use snder and not event ID domain to check if ours
The transaction queue only sends out events that we generate. This was
done by checking domain of event ID, but that can no longer be used.
Instead, we may as well use the sender field.
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transaction_queue.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index fe787abaeb..1f0b67f5f8 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -175,7 +175,7 @@ class TransactionQueue(object):
                 def handle_event(event):
                     # Only send events for this server.
                     send_on_behalf_of = event.internal_metadata.get_send_on_behalf_of()
-                    is_mine = self.is_mine_id(event.event_id)
+                    is_mine = self.is_mine_id(event.sender)
                     if not is_mine and send_on_behalf_of is None:
                         return