the new poll
Optional
unreadNotifications: NotificationCountOptional
threadId: stringFires whenever a room's account_data is updated.
The account_data event
The room whose account_data was updated.
Optional
lastEvent: MatrixEventmatrixClient.on("Room.accountData", function(event, room, oldEvent){
if (event.getType() === "m.room.colorscheme") {
applyColorScheme(event.getContents());
}
});
Fires when the status of a transmitted event is updated.
When an event is first transmitted, a temporary copy of the event is inserted into the timeline, with a temporary event id, and a status of 'SENDING'.
Once the echo comes back from the server, the content of the event (MatrixEvent.event) is replaced by the complete event from the homeserver, thus updating its event id, as well as server-generated fields such as the timestamp. Its status is set to null.
Once the /send request completes, if the remote echo has not already arrived, the event is updated with a new event id and the status is set to 'SENT'. The server-generated fields are of course not updated yet.
If the /send fails, In this case, the event's status is set to 'NOT_SENT'. If it is later resent, the process starts again, setting the status to 'SENDING'. Alternatively, the message may be cancelled, which removes the event from the room, and sets the status to 'CANCELLED'.
This event is raised to reflect each of the transitions above.
The matrix event which has been updated
The room containing the redacted event
Optional
oldEventId: stringThe previous event id (the temporary event id, except when updating a successfully-sent event when its echo arrives)
Optional
oldStatus: EventStatus | nullThe previous event status.
Fires when the logged in user's membership in the room is updated.
The room in which the membership has been updated
The new membership value
Optional
prevMembership: stringThe previous membership value
Fires whenever the name of a room is updated.
The room whose Room.name was updated.
matrixClient.on("Room.name", function(room){
var newName = room.name;
});
Fires whenever a receipt is received for a room
The receipt event
The room whose receipts was updated.
matrixClient.on("Room.receipt", function(event, room){
var receiptContent = event.getContent();
});
Fires when an event we had previously received is redacted.
(Note this is not fired when the redaction happens before we receive the event).
The matrix redaction event
The room containing the redacted event
Fires when an event that was previously redacted isn't anymore. This happens when the redaction couldn't be sent and was subsequently cancelled by the user. Redactions have a local echo which is undone in this scenario.
The matrix redaction event that was cancelled.
The room containing the unredacted event
Fires whenever a room's tags are updated.
The tags event
The room whose Room.tags was updated.
matrixClient.on("Room.tags", function(event, room){
var newTags = event.getContent().tags;
if (newTags["favourite"]) showStar(room);
});
Generated using TypeDoc
Fires when a new poll instance is added to the room state