diff options
author | Eric Eastwood <erice@element.io> | 2021-12-16 15:31:12 -0600 |
---|---|---|
committer | Eric Eastwood <erice@element.io> | 2021-12-16 15:31:12 -0600 |
commit | b99efa8026c4cc1f9dc89dc1465c2976c0bf773f (patch) | |
tree | f49d70694a213934708547c7a5de788a7225e1f3 | |
parent | Make the historical events float separately from the state chain (diff) | |
download | synapse-b99efa8026c4cc1f9dc89dc1465c2976c0bf773f.tar.xz |
Plumb allow_no_prev_events through create_and_send_nonmember_event
-rw-r--r-- | synapse/handlers/message.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 3dbd58e12c..c31e4376c3 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -768,6 +768,7 @@ class EventCreationHandler: self, requester: Requester, event_dict: dict, + allow_no_prev_events: bool = False, prev_event_ids: Optional[List[str]] = None, auth_event_ids: Optional[List[str]] = None, ratelimit: bool = True, @@ -785,6 +786,10 @@ class EventCreationHandler: Args: requester: The requester sending the event. event_dict: An entire event. + allow_no_prev_events: Whether to allow this event to be created an empty + list of prev_events. Normally this is prohibited just because most + events should have a prev_event and we should only use this in special + cases like MSC2716. prev_event_ids: The event IDs to use as the prev events. Should normally be left as None to automatically request them |