Comments from review

This commit is contained in:
Erik Johnston 2020-03-18 10:13:55 +00:00
parent 65a941d1f8
commit 6e6476ef07
3 changed files with 25 additions and 8 deletions

View file

@ -775,6 +775,9 @@ class FederationSenderHandler(object):
# ... as well as device updates and messages
elif stream_name == DeviceListsStream.NAME:
# The entities are either user IDs (starting with '@') whose devices
# have changed, or remote servers that we need to tell about
# changes.
hosts = {row.entity for row in rows if not row.entity.startswith("@")}
for host in hosts:
self.federation_sender.send_device_messages(host)