c3d2ea7abd 
								
							
								 
							
						 
						
							
							
								
								Use a separate sending queue for each conversation.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								289d0df064 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/sendToSelfVsIncompleteOperation'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								62d52ce9a0 
								
							
								 
							
						 
						
							
							
								
								Fix “send to self operations never complete” issue.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d31cfe6fd6 
								
							
								 
							
						 
						
							
							
								
								Ensure existing sessions are invalidated when saving new identity  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								4dc18f2f03 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/phoneNumberParsingTweaks'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								5846131976 
								
							
								 
							
						 
						
							
							
								
								Further refinements to phone number parsing.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								5dc4938746 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/decryptionExceptionLogging'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								7f681e964b 
								
							
								 
							
						 
						
							
							
								
								Improve logging around decryption exceptions.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								cdef86e276 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/websocketEdgeCases'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								a1e5019370 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e92d40a127 
								
							
								 
							
						 
						
							
							
								
								Fix edge cases around the websocket lifecycle.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								0f47dc6200 
								
							
								 
							
						 
						
							
							
								
								Fix edge cases around the websocket lifecycle.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								5cbaafe38a 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/maxIncomingAttachmentFileSize'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								04a3e4323c 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								8231f79977 
								
							
								 
							
						 
						
							
							
								
								Don’t check content length header until we’ve received at least one byte of the attachment download.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								2c61943537 
								
							
								 
							
						 
						
							
							
								
								Abort attachment downloads of excessive size.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d3af0d3a27 
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #135  from WhisperSystems/mkirk/fix-attachment-dispatch  
							
							... 
							
							
							
							Only call sendMessage on main thread. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								29a0597b0c 
								
							
								 
							
						 
						
							
							
								
								Only call sendMessage on main thread.  
							
							... 
							
							
							
							The proximate cause for this change was a failing assert in the recently
introduced call to `setBackgroundTaskIdentifier` which is synchronized
on the main thread.
But generally, to keep things simple, we prefer calling back on main
thread unless performance dictates otherwise.
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								ca5bcaf3c2 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'mkirk/refactor_country_code_search'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								c8fa47d9c9 
								
							
								 
							
						 
						
							
							
								
								Added some tests per CR  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d3ecbba0e8 
								
							
								 
							
						 
						
							
							
								
								Keep unit tests with their class files  
							
							... 
							
							
							
							Moved from Signal-iOS and updated to use standard XCTest macros vs. our
test-util's
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								478b5b247a 
								
							
								 
							
						 
						
							
							
								
								Remove convoluted dependency  
							
							... 
							
							
							
							of PhoneNumberUtil to ContactsManagerProtocol
Also moved tests from Signal-iOS repository here. 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								778d3dd2bc 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'mkirk/background-sending'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								58829e2162 
								
							
								 
							
						 
						
							
							
								
								ensure we don't interrupt sending by being backgrounded  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								15f5c078a1 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'mkirk/nsoperation-sending-queue'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e68ee28e51 
								
							
								 
							
						 
						
							
							
								
								Add clarifying asserts per code review  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								db15ff5e87 
								
							
								 
							
						 
						
							
							
								
								Save message before sending starts.  
							
							... 
							
							
							
							Otherwise the message doesn't get saved until it's in the queue.
Interestingly, this could also address some of the perceived lag
mentioned in: https://github.com/WhisperSystems/Signal-iOS/pull/1850 
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								df51523a84 
								
							
								 
							
						 
						
							
							
								
								Serialize message sending and generalized retry logic.  
							
							... 
							
							
							
							Previously messages could be sent out of order if (e.g.)
1. You're on a slow network
2. You send a big attachment
3. You immediately send text
Generally in this scenario, the text will be sent before the attachment.
Also, introduced a more general retry loop to retry on *any* failure
during sending.
Previously the only retry logic was around the messages API on the
Signal Server.
Now we'll also retry failures when allocating an attachment, or
uploading an attachment.
TODO: remove the now redundant retry logic in the message sender?
TODO: there is still one place where we send messages directly through
the MessageSender, rather than via the operation - when resending to a
group due to a safety number change. This is separate logic because we
were being sure to *only* resend to that one recipient. Cleaning this up
would move a lot of code around.
Once Signal-Desktop implements timestamp based de-duping we could shave
that wart by having this troublesome codepath use NSOperation like
everything else.
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d6af5028ca 
								
							
								 
							
						 
						
							
							
								
								Fix receiving attachments from old clients  
							
							... 
							
							
							
							Protobuf's null-object pattern provides an empty NSData when no digest
is provided rather than nil.
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								312f398ddd 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/nonUSNonContactSearch'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								332833da7b 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								60e0ddfb92 
								
							
								 
							
						 
						
							
							
								
								Fix non-contact lookup for non-US users.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e12bd4773a 
								
							
								 
							
						 
						
							
							
								
								Fix non-contact lookup for non-US users.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								7368c5f754 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/fixFilterCallingCodes'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								d63a519c43 
								
							
								 
							
						 
						
							
							
								
								Fix filtering of country codes in registration flow.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								ca81e139bb 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/attachmentDownloadErrors'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								c8efd83c39 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								88f343a0aa 
								
							
								 
							
						 
						
							
							
								
								Attempt to fix the "frequent attachment download errors with low server ids".  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								7867ce27a8 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/messageStateIndicators'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								25ab52caf2 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								865d9d7b96 
								
							
								 
							
						 
						
							
							
								
								Add "is uploaded" property to attachment streams.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								27fb0dd34c 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/websocketState'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e4636e8336 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								958dbd199b 
								
							
								 
							
						 
						
							
							
								
								Minor clean up.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								f40629ffa0 
								
							
								 
							
						 
						
							
							
								
								Improve alignment between socket state and socket manager state.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								b21c628d56 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'mkirk/attachment-digest'  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								8f1412d502 
								
							
								 
							
						 
						
							
							
								
								comment constant time compare per code review  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								452110b687 
								
							
								 
							
						 
						
							
							
								
								Include digest in attachments  
							
							... 
							
							
							
							- constant time compare
- free buffer passed to NSData
// FREEBIE 
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								32ac0fb7c9 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'charlesmchen/paste'  
							
							
							
						 
						
							9 years ago  
				
					
						
							
							
								 
						
							
							
								e05b687438 
								
							
								 
							
						 
						
							
							
								
								Respond to CR.  
							
							... 
							
							
							
							// FREEBIE 
							
						 
						
							9 years ago