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

    Interface ConversationSummary

    One row per conversation that has at least one persisted message, paired with that conversation's most recent message. The chat list is rendered directly from this.

    interface ConversationSummary {
        conversationId: string;
        lastMessage?: StoredMessage;
        lastMessageAttachmentContentType?: string;
        unreadCount: number;
    }
    Index

    Properties

    conversationId: string
    lastMessage?: StoredMessage

    Most recent message in the conversation. undefined for conversations we know about (e.g. groups we've been invited to) that don't yet have any persisted messages.

    lastMessageAttachmentContentType?: string

    MIME type of lastMessage's first attachment, or undefined when it has none. Lets the chat list preview a caption-less attachment whose body is empty (an image type previews as "Photo", else "Attachment").

    unreadCount: number

    Number of unread inbound messages — the chat list's unread badge. Read from the persisted store, so it is correct for every conversation.