matrixClient.on("Room.timeline",
function(event, room, toStartOfTimeline, removed, data) {
if (!toStartOfTimeline && data.liveEvent) {
var messageToAppend = room.timeline.[room.timeline.length - 1];
}
});
The matrix event which caused this event to fire.
The room, if any, whose timeline was updated.
True if this event was added to the start
True if this event has just been removed from the timeline (beginning; oldest) of the timeline e.g. due to pagination.
more data about the event
Fires whenever the live timeline in a room is reset.
When we get a 'limited' sync (for example, after a network outage), we reset the live timeline to be empty before adding the recent events to the new timeline. This event is fired after the timeline is reset, and before the new events are added.
The room whose live timeline was reset, if any
True if all timelines were reset.
Generated using TypeDoc
Fires whenever the timeline in a room is updated.