会话信息
获取参数
获取本地指定时间戳前后 N 条消息示例:
const conversation = {
conversationType: RongIMLib.ConversationType.PRIVATE,
targetId: 'targetId',
};
const option = {
timestamp: 0,
beforeCount: 10,
afterCount: 10,
};
const res = await RongIMLib.electronExtension.getMessagesAroundTimestamp(conversation, option);
console.info('获取本地指定时间戳前后 N 条消息结果:', res);
获取本地指定时间戳前后 N 条消息方法