Fixes for Chrome app import in this new SQLCipher world
This commit is contained in:
parent
baf419b7b6
commit
3961778e53
2 changed files with 7 additions and 4 deletions
|
@ -983,8 +983,6 @@ async function loadAttachments(dir, getName, options) {
|
|||
);
|
||||
|
||||
// TODO: Handle video screenshots, and image/video thumbnails
|
||||
|
||||
window.log.info('loadAttachments', { message });
|
||||
}
|
||||
|
||||
function saveMessage(db, message) {
|
||||
|
@ -1008,7 +1006,9 @@ async function saveAllMessages(db, rawMessages) {
|
|||
for (let index = 0, max = messages.length; index < max; index += 1) {
|
||||
// Yes, we really want to do these in order
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
await window.Signal.Data.saveMessage(messages[index]);
|
||||
await window.Signal.Data.saveMessage(messages[index], {
|
||||
forceSave: true,
|
||||
});
|
||||
}
|
||||
|
||||
window.log.info(
|
||||
|
|
|
@ -38,7 +38,10 @@
|
|||
return storage.put(IMPORT_LOCATION, location);
|
||||
},
|
||||
reset() {
|
||||
return Whisper.Database.clear();
|
||||
return Promise.all([
|
||||
Whisper.Database.clear(),
|
||||
Window.Signal.Data.removeAll(),
|
||||
]);
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue