mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fixes for Chrome app import in this new SQLCipher world
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user