saveMessages: Delete from messages_fts table even in insert case

This commit is contained in:
Scott Nonnenberg
2021-03-22 18:09:50 -07:00
committed by GitHub
parent a75402d290
commit 2df7569389

View File

@@ -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 (