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 {
|
try {
|
||||||
|
await db.run('DELETE FROM messages_fts WHERE id = $id;', {
|
||||||
|
$id: id,
|
||||||
|
});
|
||||||
|
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
db.run(
|
db.run(
|
||||||
`INSERT INTO messages (
|
`INSERT INTO messages (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue