84235ef58e 
								
							
								 
							
						 
						
							
							
								
								Use forEach instead of loop  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5f07c74f1a 
								
							
								 
							
						 
						
							
							
								
								Add log statement when opening provisioning socket  
							
							... 
							
							
							
							Make it more obvious via logs which server someone is attempting to
register with (i.e., to disambiguate staging from prod).
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								d4760452d1 
								
							
								 
							
						 
						
							
							
								
								Add signal agent to server requests  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								ea980b4385 
								
							
								 
							
						 
						
							
							
								
								Don't surface invalid attachment urls to the user  
							
							... 
							
							
							
							Log them, but don't put display them in user-facing error ui.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								7b1268e5f7 
								
							
								 
							
						 
						
							
							
								
								Log incoming invalid attachment urls also  
							
							... 
							
							
							
							Same as previous commit but for incoming.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								fe7505c050 
								
							
								 
							
						 
						
							
							
								
								Log invalid attachment urls  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								9c59dfda93 
								
							
								 
							
						 
						
							
							
								
								Remove duplicate case statement  
							
							... 
							
							
							
							This line was never being hit due to the duplicate one above (#L166).
Peeking at the server code shows that 403 is only given in response to
registration attempts, where it does in fact indicate an invalid code.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								acae4afce3 
								
							
								 
							
						 
						
							
							
								
								Handle invalid responses better  
							
							... 
							
							
							
							Depending on the response code, returning an HTTPError here will let us
retry later, if appropriate.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								61439a886f 
								
							
								 
							
						 
						
							
							
								
								Validate json responses  
							
							... 
							
							
							
							Perform lightweight validation on json responses from the server. Ensure
that the attributes we depend on have the right type.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b0d4370c2c 
								
							
								 
							
						 
						
							
							
								
								Remove unused variable  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								7b6820d2ac 
								
							
								 
							
						 
						
							
							
								
								Refactor messageSender/OutgoingMessage  
							
							... 
							
							
							
							Move encrypt and transmit to OutgoingMessage
Restore per-number queueing to messageSender
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								4cc6b1ff9a 
								
							
								 
							
						 
						
							
							
								
								Validate attachment urls  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								5e255e9df0 
								
							
								 
							
						 
						
							
							
								
								Remove 'Textsecure' from error message in api.js  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								f863616785 
								
							
								 
							
						 
						
							
							
								
								Remove api TODO comments  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								81ebc5ffd7 
								
							
								 
							
						 
						
							
							
								
								Improve stack traces on HTTPErrors  
							
							... 
							
							
							
							Save stack even earlier, outside the promise.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								c062fe3060 
								
							
								 
							
						 
						
							
							
								
								Automatically retry failed http requests  
							
							... 
							
							
							
							If we failed to reach the server, wait a second and try again up to 3
times.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								816a206892 
								
							
								 
							
						 
						
							
							
								
								Refactor sendMessageToDevices  
							
							... 
							
							
							
							Split into separate encrypt and transmit functions. Let the encryption
function also handle all wire formatting (ie, jsonification and base64
encoding), which simplifes TextSecureServer.sendMessages, removes a
TODO, and lets us save fewer params to make network errors replayable.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e9bc39bc56 
								
							
								 
							
						 
						
							
							
								
								Add parens and line breaks  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								868695558d 
								
							
								 
							
						 
						
							
							
								
								Throw on bad server url  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								98aa5156b0 
								
							
								 
							
						 
						
							
							
								
								Refactor TextSecureServer for storage  
							
							... 
							
							
							
							Following the pattern from previous commit, let the server class accept
a url and login credentials from the caller. Then integrate into
MessageReceiver and AccountManager.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								37ff3cf5a8 
								
							
								 
							
						 
						
							
							
								
								Change http logging  
							
							... 
							
							
							
							Printing method + url again makes it easier to match requests to
responses when scanning logs.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								f70e844cef 
								
							
								 
							
						 
						
							
							
								
								Include url in http response logging  
							
							... 
							
							
							
							Otherwise it's impossible to tell which is which, especially when
sending group messages.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								e59a5792d5 
								
							
								 
							
						 
						
							
							
								
								Don't hardcode the attachment host  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								184e37383c 
								
							
								 
							
						 
						
							
							
								
								Don't auto-populate the relay field  
							
							... 
							
							
							
							According to server api docs, relay is optional when it is the same as
our own server.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								537f0ceef0 
								
							
								 
							
						 
						
							
							
								
								Log all http requests at start and end  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								04c8796bd3 
								
							
								 
							
						 
						
							
							
								
								Disable socket level reconnect  
							
							... 
							
							
							
							This is now handled at a higher level by the message receiver with the
aid of http requests for diagnosing the disconnect.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								f764445c86 
								
							
								 
							
						 
						
							
							
								
								Remove erroneous license file and headers  
							
							... 
							
							
							
							We only use GPLV3 around here.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								0d0bdbf998 
								
							
								 
							
						 
						
							
							
								
								Don't auto-reconnect provisioning socket  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								15cd348bf2 
								
							
								 
							
						 
						
							
							
								
								Remove nonexistant variable  
							
							
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								1f8856fa69 
								
							
								 
							
						 
						
							
							
								
								MessageReceiver accepts a server websocket url  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								b40a8696b7 
								
							
								 
							
						 
						
							
							
								
								DRY up Promise creation in api.js  
							
							... 
							
							
							
							Since calls to ajax() are always wrapped in promises, we can internalize
that pattern in the ajax function itself.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								3711e0a6cd 
								
							
								 
							
						 
						
							
							
								
								Convert throwHumanError to custom error type  
							
							... 
							
							
							
							Now with 200% more helpful stack traces.
// FREEBIE 
							
						 
						
							10 years ago  
				
					
						
							
							
								 
						
							
							
								f126e3b21b 
								
							
								 
							
						 
						
							
							
								
								Work on auth error handling / reinstall  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								f32ff58953 
								
							
								 
							
						 
						
							
							
								
								Add support for device name  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								228ffe901d 
								
							
								 
							
						 
						
							
							
								
								Update json formatting for legacy message requests  
							
							... 
							
							
							
							Legacy DataMessages are sent using the `body` field, new Content
messages are sent using the `content` field.
// FREEBIE 
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								9e7d8c0a08 
								
							
								 
							
						 
						
							
							
								
								Rename textsecure.api and make it internal-only  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								a960acacc6 
								
							
								 
							
						 
						
							
							
								
								Add textsecure.refreshKeys  
							
							... 
							
							
							
							This helper checks the server for the number of remaining prekeys, then
generates more if there are fewer than 10 remaining.
// FREEBIE 
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								2ff954d2f8 
								
							
								 
							
						 
						
							
							
								
								Fix api.js  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								da34b8e0f8 
								
							
								 
							
						 
						
							
							
								
								Rename textsecure.websocket and make it internal-only  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								89c24cd2fa 
								
							
								 
							
						 
						
							
							
								
								Move throwHumanError to api.js  
							
							... 
							
							
							
							It is only used there. 
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								7af42a27c5 
								
							
								 
							
						 
						
							
							
								
								Fix registerKeys using array indices for key ids  
							
							... 
							
							
							
							preKeys is an array whose indices may or may not be keyId-based. Since
we have an inline keyId property, use that instead. 
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								00cb420d37 
								
							
								 
							
						 
						
							
							
								
								Merge (un)encrypted storage layers  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								454b4726bd 
								
							
								 
							
						 
						
							
							
								
								Replace load/decode/index around our own number with helpers  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								3759fe46e9 
								
							
								 
							
						 
						
							
							
								
								Account for -1 HTTPError code  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								e52224e481 
								
							
								 
							
						 
						
							
							
								
								Remove libtextsecure's jquery dependency  
							
							... 
							
							
							
							Use only the finest, hand-crafted, artisanal XMLHttpRequests. 
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								12844590f5 
								
							
								 
							
						 
						
							
							
								
								Move prekey sigcheck to libaxolotl  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								66cf5b08db 
								
							
								 
							
						 
						
							
							
								
								Naively move textsecure.crypto into axolotl.crypto  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								02d0c58e5e 
								
							
								 
							
						 
						
							
							
								
								Mostly done device-bringup stuff  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								29b2ffc769 
								
							
								 
							
						 
						
							
							
								
								Update to real server provisioning API  
							
							
							
						 
						
							11 years ago  
				
					
						
							
							
								 
						
							
							
								8ad1a38b5b 
								
							
								 
							
						 
						
							
							
								
								Move js files around for libtextsecure split  
							
							
							
						 
						
							11 years ago