Event
Generic event class with all possible fields for events. The content and prevContent json fields can easily be mapped to a model with toModel method.
Constructors
Functions
Copy all fields, including transient fields.
Returns a user friendly content depending on the message type. It can be used especially for message summaries. It will return a decrypted text message or an empty string otherwise.
Tells if the event is redacted.
Tells if the event is redacted by the user himself.
Check if event is a state event.
Determines whether or not current event has mentioned the user.
Properties
Extensions
Map a EventType.MESSAGE event to a MessageAudioEvent.
Return the value of "content.msgtype", if the Event type is "m.room.message" and if the content has it, and if it is a String.
Returns the poll question or null otherwise.
Returns the relation content for a specific type or null otherwise.