diff --git a/synapse/handlers/delayed_events.py b/synapse/handlers/delayed_events.py index 3da08971ee..864dc02db3 100644 --- a/synapse/handlers/delayed_events.py +++ b/synapse/handlers/delayed_events.py @@ -347,7 +347,9 @@ class DelayedEventsHandler: If None, the timestamp will be the actual time when the event is sent. content: The content of the event to be sent. delay: How long (in milliseconds) to wait before automatically sending the event. - sticky_duration_ms: The sticky duration if any, see MSC4354. + sticky_duration_ms: If an MSC4354 sticky event: the sticky duration (in milliseconds). + The event will be attempted to be reliably delivered to clients and remote servers + during its sticky period. Returns: The ID of the added delayed event. Raises: diff --git a/synapse/replication/tcp/streams/_base.py b/synapse/replication/tcp/streams/_base.py index 07b3707071..336b50160b 100644 --- a/synapse/replication/tcp/streams/_base.py +++ b/synapse/replication/tcp/streams/_base.py @@ -770,7 +770,9 @@ class StickyEventsStreamRow: """Stream to inform workers about changes to sticky events.""" room_id: str - event_id: str # The sticky event ID + + event_id: str + """The sticky event ID""" class StickyEventsStream(_StreamFromIdGen):