|  |  |  | @ -37941,7 +37941,8 @@ var TextSecureServer = (function() { | 
		
	
		
			
				|  |  |  |  |                                             provisionMessage.number, | 
		
	
		
			
				|  |  |  |  |                                             provisionMessage.provisioningCode, | 
		
	
		
			
				|  |  |  |  |                                             provisionMessage.identityKeyPair, | 
		
	
		
			
				|  |  |  |  |                                             deviceName | 
		
	
		
			
				|  |  |  |  |                                             deviceName, | 
		
	
		
			
				|  |  |  |  |                                             provisionMessage.userAgent | 
		
	
		
			
				|  |  |  |  |                                         ); | 
		
	
		
			
				|  |  |  |  |                                     }); | 
		
	
		
			
				|  |  |  |  |                                 })); | 
		
	
	
		
			
				
					|  |  |  | @ -37965,7 +37966,7 @@ var TextSecureServer = (function() { | 
		
	
		
			
				|  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |             }.bind(this)); | 
		
	
		
			
				|  |  |  |  |         }, | 
		
	
		
			
				|  |  |  |  |         createAccount: function(number, verificationCode, identityKeyPair, deviceName) { | 
		
	
		
			
				|  |  |  |  |         createAccount: function(number, verificationCode, identityKeyPair, deviceName, userAgent) { | 
		
	
		
			
				|  |  |  |  |             var signalingKey = libsignal.crypto.getRandomBytes(32 + 20); | 
		
	
		
			
				|  |  |  |  |             var password = btoa(getString(libsignal.crypto.getRandomBytes(16))); | 
		
	
		
			
				|  |  |  |  |             password = password.substring(0, password.length - 2); | 
		
	
	
		
			
				
					|  |  |  | @ -37982,6 +37983,7 @@ var TextSecureServer = (function() { | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.remove('number_id'); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.remove('device_name'); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.remove('regionCode'); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.remove('userAgent'); | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |                     // update our own identity key, which may have changed
 | 
		
	
		
			
				|  |  |  |  |                     // if we're relinking after a reinstall on the master device
 | 
		
	
	
		
			
				
					|  |  |  | @ -37994,6 +37996,9 @@ var TextSecureServer = (function() { | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.put('signaling_key', signalingKey); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.put('password', password); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.put('registrationId', registrationId); | 
		
	
		
			
				|  |  |  |  |                     if (userAgent) { | 
		
	
		
			
				|  |  |  |  |                         textsecure.storage.put('userAgent', userAgent); | 
		
	
		
			
				|  |  |  |  |                     } | 
		
	
		
			
				|  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.user.setNumberAndDeviceId(number, response.deviceId || 1, deviceName); | 
		
	
		
			
				|  |  |  |  |                     textsecure.storage.put('regionCode', libphonenumber.util.getRegionCodeForNumber(number)); | 
		
	
	
		
			
				
					|  |  |  | @ -39404,7 +39409,8 @@ ProvisioningCipher.prototype = { | 
		
	
		
			
				|  |  |  |  |                 return { | 
		
	
		
			
				|  |  |  |  |                     identityKeyPair  : keyPair, | 
		
	
		
			
				|  |  |  |  |                     number           : provisionMessage.number, | 
		
	
		
			
				|  |  |  |  |                     provisioningCode : provisionMessage.provisioningCode | 
		
	
		
			
				|  |  |  |  |                     provisioningCode : provisionMessage.provisioningCode, | 
		
	
		
			
				|  |  |  |  |                     userAgent        : provisionMessage.userAgent | 
		
	
		
			
				|  |  |  |  |                 }; | 
		
	
		
			
				|  |  |  |  |             }); | 
		
	
		
			
				|  |  |  |  |         }); | 
		
	
	
		
			
				
					|  |  |  | 
 |