公开的会话列表项,来自本地会话列表缓存的投影数据。

interface ConversationItem {
    conversationId: string;
    conversationType: ConversationType;
    unreadCount: number;
    lastMessage: null | SessionMessageSnippet;
    lastMessageAt?: number;
    isPinned?: boolean;
    pinnedTimestamp?: number;
    marks: readonly ConversationMark[];
    readAt?: number;
    remindType: SessionListRemindType;
    conversationName: string;
    conversationAvatar?: string;
}

Hierarchy (View Summary)

Properties

conversationId: string

会话 ID。

conversationType: ConversationType

会话类型。

unreadCount: number

会话的未读消息数量。

lastMessage: null | SessionMessageSnippet

最后一条消息摘要。

lastMessageAt?: number

最后一条消息的时间戳(毫秒)。

isPinned?: boolean

会话是否处于置顶状态。

pinnedTimestamp?: number

置顶时间戳(毫秒)。

marks: readonly ConversationMark[]

会话已应用的标记列表。

readAt?: number

已读位置或已读时间戳。

会话的提醒类型。

conversationName: string

会话的显示名称。

conversationAvatar?: string

会话的头像 URL 地址。