summary refs log tree commit diff
path: root/synapse/events/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--synapse/events/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index eaf6fcf2f9..da4b326f95 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -406,6 +406,9 @@ class EventBase(metaclass=abc.ABCMeta):
 
         return template_json
 
+    def get_templated_linearized_pdu_json(self) -> JsonDict:
+        raise NotImplementedError()
+
     def __getitem__(self, field: str) -> Optional[Any]:
         return self._dict[field]
 
@@ -644,7 +647,7 @@ class FrozenLinearizedEvent(FrozenEventV3):
         pdu.pop("prev_events")
         return pdu
 
-    def get_templated_pdu_json(self) -> JsonDict:
+    def get_templated_linearized_pdu_json(self) -> JsonDict:
         """
         Return a JSON object suitable for a templated event, as used in the
         make_{join,leave,knock} workflow.