RongIMLib View Markdown
    Preparing search index...

    Type Alias IGetConversationListByTimestampParams

    按时间戳查询会话列表参数

    type IGetConversationListByTimestampParams = {
        startTime: number;
        count: number;
        order?: 0 | 1;
        channelId?: string;
        topPriority?: boolean;
        conversationTypes?: ConversationType[];
        unreadCountFilter?: ConversationUnreadCountFilter;
    }
    Index
    startTime: number

    获取会话起始时间,需要精确到毫秒,0 表示当前时间

    count: number

    分页数量

    order?: 0 | 1

    查询方向。该参数对 Electron 平台无效,Electron 平台下始终为 0;

    • 0 - 从 startTime 开始向前查询,数据按时间降序排序
    • 1 - 从 startTime 开始向后查询,数据按时间升序排序
    channelId?: string

    单、群聊会话的组织 ID,用于多组织场景查询;仅 Electron 平台有效

    topPriority?: boolean

    是否置顶优先,仅对 Electron 平台有效

    conversationTypes?: ConversationType[]

    会话类型,值为空或长度为 0 时,获取全部会话类型。

    • Web 端仅在开启“会话列表支持超级群“功能后有效。
    unreadCountFilter?: ConversationUnreadCountFilter

    会话查询未读数过滤器,默认值为 ConversationUnreadCountFilter.ALL,仅对 Electron 平台有效。

    5.44.0