summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-09-15 16:57:25 +0100
committerErik Johnston <erik@matrix.org>2015-09-15 16:57:25 +0100
commit2048388cfd585e68bca43831a4b16d1eb282b1d2 (patch)
tree6cec292e601100e41089135fca53685bb6e469b0 /synapse/storage/events.py
parentMerge pull request #272 from matrix-org/daniel/insecureclient (diff)
parent"Comments" (diff)
downloadsynapse-2048388cfd585e68bca43831a4b16d1eb282b1d2.tar.xz
Merge pull request #281 from matrix-org/erikj/update_extremeties
When updating a stored event from outlier to non-outlier, remember to update the extremeties
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index fba837f461..0a477e3122 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -281,6 +281,8 @@ class EventsStore(SQLBaseStore):
                     (False, event.event_id,)
                 )
 
+                self._update_extremeties(txn, [event])
+
         events_and_contexts = filter(
             lambda ec: ec[0] not in to_remove,
             events_and_contexts