A few small bugfixes
This commit is contained in:
parent
d4dc9b8e39
commit
ee41e4f71d
4 changed files with 28 additions and 19 deletions
|
@ -4863,7 +4863,7 @@ async function removeAllConfiguration(): Promise<void> {
|
|||
const patch: Partial<ConversationType> = { senderKeyInfo: undefined };
|
||||
|
||||
db.transaction(() => {
|
||||
db.prepare(
|
||||
db.exec(
|
||||
`
|
||||
DELETE FROM identityKeys;
|
||||
DELETE FROM items;
|
||||
|
@ -4873,11 +4873,13 @@ async function removeAllConfiguration(): Promise<void> {
|
|||
DELETE FROM signedPreKeys;
|
||||
DELETE FROM unprocessed;
|
||||
DELETE FROM jobs;
|
||||
UPDATE conversations SET json = json_patch(json, $patch);
|
||||
`
|
||||
).run({
|
||||
$patch: patch,
|
||||
});
|
||||
);
|
||||
db.prepare('UPDATE conversations SET json = json_patch(json, $patch);').run(
|
||||
{
|
||||
patch: JSON.stringify(patch),
|
||||
}
|
||||
);
|
||||
})();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue