diff options
author | Erik Johnston <erik@matrix.org> | 2020-03-18 10:13:55 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2020-03-18 10:13:55 +0000 |
commit | 6e6476ef07c2d72fbea85603f2eb2a61a6866732 (patch) | |
tree | 659fce3ef13f42f87c4d6e4547b417a56d8b73b7 /synapse/replication/slave/storage | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/fixup_devi... (diff) | |
download | synapse-6e6476ef07c2d72fbea85603f2eb2a61a6866732.tar.xz |
Comments from review
Diffstat (limited to 'synapse/replication/slave/storage')
-rw-r--r-- | synapse/replication/slave/storage/devices.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/devices.py b/synapse/replication/slave/storage/devices.py index 01a4f85884..23b1650e41 100644 --- a/synapse/replication/slave/storage/devices.py +++ b/synapse/replication/slave/storage/devices.py @@ -72,6 +72,9 @@ class SlavedDeviceStore(EndToEndKeyWorkerStore, DeviceWorkerStore, BaseSlavedSto def _invalidate_caches_for_devices(self, token, rows): for row in rows: + # The entities are either user IDs (starting with '@') whose devices + # have changed, or remote servers that we need to tell about + # changes. if row.entity.startswith("@"): self._device_list_stream_cache.entity_has_changed(row.entity, token) self.get_cached_devices_for_user.invalidate((row.entity,)) |