Only send out device list updates for our own users (#12465)

Broke in #12365
This commit is contained in:
Erik Johnston 2022-04-14 13:05:31 +01:00 committed by GitHub
parent 535a689cfc
commit 0b014eb25e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 56 additions and 8 deletions

View file

@ -1703,7 +1703,9 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore):
next(stream_id_iterator),
user_id,
device_id,
False,
not self.hs.is_mine_id(
user_id
), # We only need to send out update for *our* users
now,
encoded_context if whitelisted_homeserver(destination) else "{}",
)