A few small bugfixes

This commit is contained in:
Scott Nonnenberg 2021-05-27 13:47:39 -07:00 committed by GitHub
parent d4dc9b8e39
commit ee41e4f71d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 19 deletions

View file

@ -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),
}
);
})();
}