From 12d9d4154881875128cf144ce1f2a43cea3effe6 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 7 Mar 2018 12:24:52 -0800 Subject: [PATCH] Move to better database deletion call; clears in-memory caches --- js/views/install_view.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/install_view.js b/js/views/install_view.js index d07f511ff..9840f19da 100644 --- a/js/views/install_view.js +++ b/js/views/install_view.js @@ -149,6 +149,8 @@ this.$('#link-phone').submit(); }, confirmNumber: function(number) { + var tsp = textsecure.storage.protocol; + window.removeSetupMenuItems(); this.selectStep(Steps.ENTER_NAME); this.setDeviceNameDefault(); @@ -180,7 +182,7 @@ return finish(); } - Whisper.Backup.clearDatabase().then(finish, function(error) { + tsp.removeAllData().then(finish, function(error) { console.log( 'confirmNumber: error clearing database', error && error.stack ? error.stack : error