summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-10-10 11:58:32 +0100
committerGitHub <noreply@github.com>2017-10-10 11:58:32 +0100
commit84e27a592da474260b5b41d3803ed35927b4f631 (patch)
tree3250060e867434b978f2e091668ed4c8b3946019 /synapse/storage/events.py
parentMerge pull request #2520 from matrix-org/rav/process_incoming_rooms_in_parallel (diff)
parentFix up comment (diff)
downloadsynapse-84e27a592da474260b5b41d3803ed35927b4f631.tar.xz
Merge pull request #2490 from matrix-org/erikj/drop_left_room_events
Ignore incoming events for rooms that we have left
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 7002b3752e..4f0b43c36d 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -784,6 +784,9 @@ class EventsStore(SQLBaseStore):
                     self._invalidate_cache_and_stream(
                         txn, self.is_host_joined, (room_id, host)
                     )
+                    self._invalidate_cache_and_stream(
+                        txn, self.was_host_joined, (room_id, host)
+                    )
 
                 self._invalidate_cache_and_stream(
                     txn, self.get_users_in_room, (room_id,)