会话信息
用户 ID
搜索时间,搜索时间之前的消息
获取的数量
根据用户 ID 搜索本地消息示例:
const conversation = {
conversationType: RongIMLib.ConversationType.PRIVATE,
targetId: 'targetId'
};
const userId = 'userId';
const startTime = Date.now();
const count = 10;
const res = await RongIMLib.electronExtension.searchMessagesByUser(conversation, userId, startTime, count);
console.info('根据用户 ID 搜索本地消息', res);
根据用户 ID 搜索本地消息