@actnet/app-core - v0.1.0
    Preparing search index...

    Interface StoredMessage

    A message from local history (persisted in SQLCipher). Returned by AppCore.loadMessages, AppCore.loadLastMessage, and AppCore.loadConversations. Pass back to AppCore.saveMessage to insert/update.

    interface StoredMessage {
        id: string;
        conversationId: string;
        senderDid: string;
        body: string;
        sentAt: Instant;
        editedAt?: Instant;
        readAt?: Instant;
        deliveryStatus: DeliveryStatus;
        kind: number;
        metadata?: string;
        attachments?: Attachment[];
        previews?: LinkPreview[];
    }
    Index

    Properties

    id: string

    Client-chosen id (typically a UUID). Primary key in the local store.

    conversationId: string

    Conversation key. For DMs this is the other party's DID; for group messages this is the group id.

    senderDid: string

    DID of the sender.

    body: string

    Plaintext body.

    sentAt: Instant

    Sender's send-time.

    editedAt?: Instant

    When the message was last edited, if ever.

    readAt?: Instant

    When this row was marked read locally, if ever.

    deliveryStatus: DeliveryStatus

    Outbound delivery status (incoming messages stay at "delivered").

    kind: number

    0 = normal chat message; >0 = a system/metadata timeline entry (docs/03 §3.6 group event). Renderers show kind>0 rows as a centered line.

    metadata?: string

    JSON for system rows (event kind + actor/target DIDs); undefined for normal chat messages.

    attachments?: Attachment[]

    Attachments on this message (docs/35); empty for plain text.

    previews?: LinkPreview[]

    Link-preview cards on this message (docs/35); empty for plain text.