obby-client for TypeScript
    Preparing search index...

    Type Alias ChatMessage

    One message, as the model holds it.

    type ChatMessage = {
        account: string | null;
        historical: boolean;
        key: MessageKey;
        kind: MessageKind;
        link_preview: LinkPreview | null;
        msgid: string | null;
        own: boolean;
        reactions: { [key in string]?: string[] };
        redacted: boolean;
        reply_to: string | null;
        sender: string;
        text: string;
    }
    Index
    account: string | null

    The account the sender was logged in as, from account-tag.

    historical: boolean

    True when this arrived inside a history batch rather than live.

    Where it sits in the log.

    What kind of event it is.

    link_preview: LinkPreview | null

    A preview of the first link in this message, when the server built one.

    msgid: string | null

    The network-unique id, when the server assigned one.

    own: boolean

    True when this is our own message coming back through echo-message.

    reactions: { [key in string]?: string[] }

    Reactions, keyed by the emoji, holding who reacted.

    redacted: boolean

    True once the message was redacted. The original is kept, because throwing it away leaves no way to show who redacted what.

    reply_to: string | null

    The message this one replies to, from the +reply tag.

    The server is inconsistent about the spelling and sends +reply from one module and +draft/reply from another, so both are accepted on the way in.

    sender: string

    Who sent it, as they spell their own nick.

    text: string

    The body, empty for events that have none.