1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/relations.py b/synapse/handlers/relations.py
index 444b795872..642f7acf97 100644
--- a/synapse/handlers/relations.py
+++ b/synapse/handlers/relations.py
@@ -180,6 +180,10 @@ class RelationsHandler:
config=serialize_options,
),
}
+
+ if recurse:
+ return_value["recursion_depth"] = 3
+
if include_original_event:
# Do not bundle aggregations when retrieving the original event because
# we want the content before relations are applied to it.
|