1
This commit is contained in:
parent
99898555d4
commit
b956b4ef79
@ -105,7 +105,6 @@ export async function batchAddOrUpdateMessages(messages) {
|
||||
return message;
|
||||
});
|
||||
|
||||
// 使用 bulkPut 高效地批量添加或更新
|
||||
await db.messages.bulkPut(messagesToStore);
|
||||
|
||||
// 更新最后一条消息到会话
|
||||
@ -132,7 +131,6 @@ export async function getMessages(talkType, userId, receiverId, limit = 30, maxS
|
||||
try {
|
||||
let collection;
|
||||
|
||||
// 使用索引进行高效查询
|
||||
if (maxSequence !== null) {
|
||||
// 加载更多:查询 sequence 小于 maxSequence 的消息
|
||||
collection = db.messages
|
||||
|
Loading…
Reference in New Issue
Block a user