UNPKG

press-next

Version:

Vue3 组件库,支持 Composition API

26 lines (21 loc) 458 B
import { waitReady } from './wait-ready'; import type { TimInstanceType, TimType } from '../types'; export async function getMessageList({ conversationId, // count = 15, nextMsgId, tim, TIM, }: { tim: TimInstanceType; TIM: TimType; nextMsgId: string; conversationId: string; }) { await waitReady(tim, TIM); return await tim.getMessageList({ conversationID: conversationId, // count, nextReqMessageID: nextMsgId, }); }