IAddLiveEventOptions
Defined in: src/models/event-timeline-set.ts:68
Extends
Section titled “Extends”Pick<IAddEventToTimelineOptions,"fromCache"|"roomState"|"timelineWasEmpty"|"addToState">
Properties
Section titled “Properties”addToState
Section titled “addToState”addToState:
boolean
Defined in: src/models/event-timeline.ts:42
Whether to add timeline events to the state as was done in legacy sync v2. If true then timeline events will be added to the state. In sync v2 with org.matrix.msc4222.use_state_after and simplified sliding sync, all state arrives explicitly and timeline events should not be added.
Inherited from
Section titled “Inherited from”duplicateStrategy?
Section titled “duplicateStrategy?”
optionalduplicateStrategy?:DuplicateStrategy
Defined in: src/models/event-timeline-set.ts:78
Applies to events in the timeline only. If this is ‘replace’ then if a duplicate is encountered, the event passed to this function will replace the existing event in the timeline. If this is not specified, or is ‘ignore’, then the event passed to this function will be ignored entirely, preserving the existing event in the timeline. Events are identical based on their event ID only.
fromCache?
Section titled “fromCache?”
optionalfromCache?:boolean
Defined in: src/models/event-timeline-set.ts:65
Whether the sync response came from cache
Inherited from
Section titled “Inherited from”IAddEventToTimelineOptions.fromCache
roomState?
Section titled “roomState?”
optionalroomState?:RoomState
Defined in: src/models/event-timeline.ts:37
The state events to reconcile metadata from
Inherited from
Section titled “Inherited from”timelineWasEmpty?
Section titled “timelineWasEmpty?”
optionaltimelineWasEmpty?:boolean
Defined in: src/models/room-state.ts:51
Whether the timeline was empty before the marker event arrived in the room. This could be happen in a variety of cases:
- From the initial sync
- It’s the first state we’re seeing after joining the room
- Or whether it’s coming from
syncFromCache
A marker event refers to UNSTABLE_MSC2716_MARKER and indicates that
history was imported somewhere back in time. It specifically points to an
MSC2716 insertion event where the history was imported at. Marker events
are sent as state events so they are easily discoverable by clients and
hubs and don’t get lost in timeline gaps.