Remove IndexedDB files after removing IndexedDB database

This commit is contained in:
Scott Nonnenberg 2018-11-01 16:40:19 -07:00
parent 486932048c
commit fb670ad6b9
4 changed files with 27 additions and 4 deletions

View file

@ -297,6 +297,7 @@
await mandatoryMessageUpgrade({ upgradeMessageSchema });
await migrateAllToSQLCipher({ writeNewAttachmentData, Views });
await removeDatabase();
await window.Signal.Data.removeIndexedDBFiles();
window.installStorage(window.newStorage);
await window.storage.fetch();

View file

@ -41,6 +41,7 @@ module.exports = {
close,
removeDB,
removeIndexedDBFiles,
createOrUpdateGroup,
getGroupById,
@ -319,6 +320,10 @@ async function removeDB() {
await channels.removeDB();
}
async function removeIndexedDBFiles() {
await channels.removeIndexedDBFiles();
}
// Groups
async function createOrUpdateGroup(data) {