the event at the centre of this context
Add more events to the timeline
new events, in timeline order
true to insert new events at the start
Get the main event of interest
This is a convenience function for getTimeline()[getOurEventIndex()].
The event at the centre of this context.
Get the index in the timeline of our event
Get a pagination token.
true to get the pagination token for going
Set a pagination token.
Generally this will be used only by the matrix js sdk.
Optional
token: stringpagination token
true to set the pagination token for going backwards in time
Construct a new EventContext
An eventcontext is used for circumstances such as search results, when we have a particular event of interest, and a bunch of events before and after it.
It also stores pagination tokens for going backwards and forwards in the timeline.