summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-05-07 17:31:19 +0200
committerBrendan Abolivier <babolivier@matrix.org>2020-05-07 17:31:19 +0200
commit5bb26b7c4fa22ce3927fb365b5af06efec8cc4c7 (patch)
tree5abb3820f5e29c8eef26b78283afdf562198093c /synapse/handlers
parentFixes typo (bellow -> below) (#7449) (diff)
parentAdd a configuration setting for the dummy event threshold (#7422) (diff)
downloadsynapse-5bb26b7c4fa22ce3927fb365b5af06efec8cc4c7.tar.xz
Merge branch 'release-v1.13.0' into develop
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index a324f09340..a622a600b4 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -419,6 +419,8 @@ class EventCreationHandler(object):
 
         self._ephemeral_events_enabled = hs.config.enable_ephemeral_messages
 
+        self._dummy_events_threshold = hs.config.dummy_events_threshold
+
     @defer.inlineCallbacks
     def create_event(
         self,
@@ -1085,7 +1087,7 @@ class EventCreationHandler(object):
         """
         self._expire_rooms_to_exclude_from_dummy_event_insertion()
         room_ids = await self.store.get_rooms_with_many_extremities(
-            min_count=10,
+            min_count=self._dummy_events_threshold,
             limit=5,
             room_id_filter=self._rooms_to_exclude_from_dummy_event_insertion.keys(),
         )