|
|
@ -149,6 +149,8 @@
|
|
|
|
this.$('#link-phone').submit();
|
|
|
|
this.$('#link-phone').submit();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
confirmNumber: function(number) {
|
|
|
|
confirmNumber: function(number) {
|
|
|
|
|
|
|
|
var tsp = textsecure.storage.protocol;
|
|
|
|
|
|
|
|
|
|
|
|
window.removeSetupMenuItems();
|
|
|
|
window.removeSetupMenuItems();
|
|
|
|
this.selectStep(Steps.ENTER_NAME);
|
|
|
|
this.selectStep(Steps.ENTER_NAME);
|
|
|
|
this.setDeviceNameDefault();
|
|
|
|
this.setDeviceNameDefault();
|
|
|
@ -180,7 +182,7 @@
|
|
|
|
return finish();
|
|
|
|
return finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Whisper.Backup.clearDatabase().then(finish, function(error) {
|
|
|
|
tsp.removeAllData().then(finish, function(error) {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'confirmNumber: error clearing database',
|
|
|
|
'confirmNumber: error clearing database',
|
|
|
|
error && error.stack ? error.stack : error
|
|
|
|
error && error.stack ? error.stack : error
|
|
|
|