saveMessages: Delete from messages_fts table even in insert case
This commit is contained in:
@@ -2719,6 +2719,10 @@ async function saveMessage(
|
||||
}
|
||||
|
||||
try {
|
||||
await db.run('DELETE FROM messages_fts WHERE id = $id;', {
|
||||
$id: id,
|
||||
});
|
||||
|
||||
await Promise.all([
|
||||
db.run(
|
||||
`INSERT INTO messages (
|
||||
|
Reference in New Issue
Block a user