Interface

IRichReplyMetadata

IRichReplyMetadata

Metadata for a rich reply. Usually stored under the "mx_richreply" field of an event (at the top level).
See:

View Source preprocessors/RichRepliesPreprocessor.ts, line 114

Members

string

# fallbackHtmlBody

The fallback HTML the processor found. May be an empty string if wasLenient is true. The fallback structure will have already been removed, leaving just the original assumed HTML.

View Source preprocessors/RichRepliesPreprocessor.ts, line 141

string

# fallbackPlainBody

The fallback plain text the preprocessor found. May be an empty string if wasLenient is true. The prefix characters to indicate this is a fallback will have already been removed.

View Source preprocessors/RichRepliesPreprocessor.ts, line 134

string

# fallbackSender

The user ID that sent the parent event, as determined by the fallback text. This should not be relied upon for anything serious, and instead the preprocessor should be configured to fetch the real event to populate the realEvent property. May be an empty string if wasLenient is true.

View Source preprocessors/RichRepliesPreprocessor.ts, line 148

string

# parentEventId

The event ID the event references. May be an empty string if wasLenient is true.

View Source preprocessors/RichRepliesPreprocessor.ts, line 128

any

# realEvent

If the preprocessor is configured to fetch event content, this field will contain the event as reported by the homeserver. May be null if wasLenient is true.

View Source preprocessors/RichRepliesPreprocessor.ts, line 157

boolean

# wasLenient

If true, the preprocessor found some inconsistencies in the reply information that does not match the specification. For example, this may indicate that a reply was sent without an HTML component.

View Source preprocessors/RichRepliesPreprocessor.ts, line 121