@ -39204,11 +39204,13 @@ var TextSecureServer = (function() {
return this . server . confirmCode (
return this . server . confirmCode (
number , verificationCode , password , signalingKey , registrationId , deviceName
number , verificationCode , password , signalingKey , registrationId , deviceName
) . then ( function ( response ) {
) . then ( function ( response ) {
return textsecure . storage . axolotl . clearSessionStore ( ) . then ( function ( ) {
textsecure . storage . remove ( 'identityKey' ) ;
textsecure . storage . remove ( 'identityKey' ) ;
textsecure . storage . remove ( 'signaling_key' ) ;
textsecure . storage . remove ( 'signaling_key' ) ;
textsecure . storage . remove ( 'password' ) ;
textsecure . storage . remove ( 'password' ) ;
textsecure . storage . remove ( 'registrationId' ) ;
textsecure . storage . remove ( 'registrationId' ) ;
textsecure . storage . remove ( 'number_id' ) ;
textsecure . storage . remove ( 'number_id' ) ;
textsecure . storage . remove ( 'device_name' ) ;
textsecure . storage . remove ( 'regionCode' ) ;
textsecure . storage . remove ( 'regionCode' ) ;
textsecure . storage . put ( 'identityKey' , identityKeyPair ) ;
textsecure . storage . put ( 'identityKey' , identityKeyPair ) ;
@ -39220,6 +39222,7 @@ var TextSecureServer = (function() {
textsecure . storage . put ( 'regionCode' , libphonenumber . util . getRegionCodeForNumber ( number ) ) ;
textsecure . storage . put ( 'regionCode' , libphonenumber . util . getRegionCodeForNumber ( number ) ) ;
this . server . username = textsecure . storage . get ( 'number_id' ) ;
this . server . username = textsecure . storage . get ( 'number_id' ) ;
} . bind ( this ) ) ;
} . bind ( this ) ) ;
} . bind ( this ) ) ;
} ,
} ,
generateKeys : function ( count , progressCallback ) {
generateKeys : function ( count , progressCallback ) {
if ( typeof progressCallback !== 'function' ) {
if ( typeof progressCallback !== 'function' ) {