会话信息
消息体,@since 5.6.1 增加支持 BaseMessage 类型
插入消息配置,类型为 IInsertOptions
插入消息示例:
const conversation = {
conversationType: RongIMLib.ConversationType.PRIVATE,
targetId: 'targetId',
};
const message = new RongIMLib.TextMessage({ content: 'hello' });
const options = {
searchContent: 'hello',
};
const res = await RongIMLib.electronExtension.insertMessage(conversation, message, options);
console.info('插入消息结果:', res);
向本地插入一条消息