saveMessages: Delete from messages_fts table even in insert case
This commit is contained in:
parent
a75402d290
commit
2df7569389
1 changed files with 4 additions and 0 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue