Commit Graph

289 Commits (889ad0bc6702f37b065985dff50f11d4fe84ef28)

Author SHA1 Message Date
Michael Kirk 5d604a796c [JSQMVC] Fixes "floating" edit menu for narrow media items
previously, edit menu was only positioned correctly for text bubbles,
and centered for media bubbles.

It wasn't that noticable for images/videos since those usually extended
to the middle of the conversation view, but with narrower media bubbles
(like arbitrary attachments) this became a bigger problem.

// FREEBIE
9 years ago
Matthew Chen 1d2e5d218d [SSK] Create block offer when non-contacts send you a message.
// FREEBIE
9 years ago
Matthew Chen 8490be6ed9 [SSK] Remove the properties related to Redphone and WebRTC support.
// FREEBIE
9 years ago
Matthew Chen 2fd8a13a3c [SSK] Improve attachment upload progress indicator.
// FREEBIE
9 years ago
Michael Kirk 2af89c9a2e [SSK][SPK] only assert dispatch in DEBUG
// FREEBIE
9 years ago
Michael Kirk 87845525b6 [SSK] serialize all read/write to sessionStore
Attempt to avoid session corruption happening due to an inconsistent
view of the session store by ensuring all access to the session store
happens on a serialized queue

// FREEBIE
9 years ago
Michael Kirk 398ee22f50 [SSK] rename cipher queue to sessionStoreQueue
// FREEBIE
9 years ago
Michael Kirk a951d11d97 [SSK] move iOSVersion to SSK
// FREEBIE
9 years ago
Michael Kirk 4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
9 years ago
Michael Kirk f46080519e [SSK] Don't retry terminal sending failures
* Causing prekey request rate-limit when sending to someone who's
  reregistered.
* Unnecessarily printing "unregistered user" multiple times.
* etc.

// FREEBIE
9 years ago
Matthew Chen 3537518268 [SSK] Don’t block outgoing group messages.
// FREEBIE
9 years ago
Matthew Chen f604cfb553 Apply assert to ensure singletons are only created once & filter incoming messages using the blacklist.
// FREEBIE
9 years ago
Matthew Chen 5ff454fd90 Fix double creation of NotificationsManager singleton.
// FREEBIE
9 years ago
Matthew Chen d00c892158 Apply assert to ensure singletons are only created once.
// FREEBIE
9 years ago
Michael Kirk 7153994929 [SSK] [SPK] Update SignalProtocolKit and SignalServiceKit
// FREEBIE
9 years ago
Michael Kirk 7f239c8040 [SSK] + Enforce singleton access for MessagesManager and MessageSender
// FREEBIE
9 years ago
Michael Kirk 4c0242ee17 [spk] Update SignalProtocolKit
// FREEBIE
9 years ago
Matthew Chen 5138539d99 [SSK] Fix sharing of oversize text messages.
// FREEBIE
9 years ago
Matthew Chen 306895ea6d [SSK] Improve support for arbitrary attachments.
// FREEBIE
9 years ago
Matthew Chen 630fcedff0 [SSK] Accept arbitrary incoming attachments.
// FREEBIE
9 years ago
Matthew Chen 32d856ff2d [SSK] Improve handling of incomplete and failed attachment downloads.
// FREEBIE
9 years ago
Matthew Chen 5250d327e4 [SSK] Remove RedPhone code.
// FREEBIE
9 years ago
Matthew Chen faf75e25c2 [SSK] Remove RedPhone code.
// FREEBIE
9 years ago
Matthew Chen 74f939b520 Remove RedPhone code.
// FREEBIE
9 years ago
Matthew Chen 9db33a9651 Remove RedPhone code.
// FREEBIE
9 years ago
Matthew Chen 00a29dea4d [SSK] Filter out country codes properly.
// FREEBIE
9 years ago
Michael Kirk ea62e21611 [SSK] fix attachment crash on iOS9
// FREEBIE
9 years ago
Michael Kirk f29ca7851f Move PureLayout back to cocoapods for now
This introduced some unexpected crashes related to frameworks in Swift.

// FREEBIE
9 years ago
Michael Kirk 0d52a18458 Update dependencies
Also moved PureLayout to Carthage for faster incremental builds

// FREEBIE
9 years ago
Matthew Chen eb8d4388c6 [SSK] Avoid YapDatabase deadlock in OWSMessageSender.
// FREEBIE
9 years ago
Michael Kirk 6466e9f41f [SSK] Better logging for envelopes
Leave last 3 digits of recipientId when scrubbing logs.

This is in line with other Signal clients, and makes it possible to
trace interactions.

// FREEBIE
9 years ago
Matthew Chen fe18cb9a39 [SSK] Use a separate sending queue for each conversation & Fix “send to self operations never complete” issue.
// FREEBIE
9 years ago
Michael Kirk 34831ea105 [SPK][SSK] Ensure old sessions removed when identity changes
// FREEBIE
9 years ago
Matthew Chen 949a7cd9a2 [SSK] Further refinements to phone number parsing.
// FREEBIE
9 years ago
Matthew Chen 95de36d671 [SSK] Improve logging around decryption exceptions.
// FREEBIE
9 years ago
Matthew Chen 50ad6e4f62 [SSK] Update SSK pod to reflect websocket lifecycle edge cases.
// FREEBIE
9 years ago
Matthew Chen 5797cb1093 [SSK] Update SSK to reflect cancel oversize attachment downloads. 9 years ago
Michael Kirk 49da1aea1e [SSK] Only send messages on main thread
// FREEBIE
9 years ago
Michael Kirk da32570dc6 [SSK] remove convoluted dependency
Moved query method to PhoneNumberUtil since that's they only caller.
Moved corresponding tests to SSK

// FREEBIE
9 years ago
Michael Kirk 8ed10c3a9b [SSK] Don't suspend app until message sending completes.
// FREEBIE
9 years ago
Michael Kirk 55063fec63 [SSK] Serialize message sending
Most notable on shoddy networks, Signal-iOS will now make sure that
messages sent first can be delivered first.

This *does* entail that we have to wait for attachments to upload and
send before subsequent messages can be sent. Some people don't like
this, but the majority UX is improved.

// FREEBIE
9 years ago
Michael Kirk 0ecbbfaefe [SSK] backwards compatible attachment digests
// FREEBIE
9 years ago
Michael Kirk 8adba61b37 intern Pastelog back into Signal.
Not worth the cocaopods/framework/project mgmt machinery for making
changes to 1 class.

// FREEBIE
9 years ago
Matthew Chen 0993860376 [SSK] Update SSK pod to reflect corresponding changes.
// FREEBIE
9 years ago
Michael Kirk 99c982fbb2 change ZXing to framework for faster incremental compiles in xcode
// FREEBIE
9 years ago
Matthew Chen c68bfac71d [SSK] Update SSK pod to fix build break.
// FREEBIE
9 years ago
Matthew Chen bdc729ad29 Respond to CR.
// FREEBIE
9 years ago
Michael Kirk d8c4558c80 [SSK] Attachment digests
// FREEBIE
9 years ago
Michael Kirk 8f7e0a8a5b [SSK] Fix crash-on-launch for older installs
populating the de-duping index assumes authorId is always set for
incoming messages, but this was not always the case.

// FREEBIE
9 years ago
Matthew Chen e96692d702 Respond to CR.
// FREEBIE
9 years ago
Matthew Chen c35c118dcd Respond to CR.
// FREEBIE
9 years ago
Michael Kirk 8104ffa129 [SSK] Dedupe incoming messages by timestamp/device
// FREEBIE
9 years ago
Michael Kirk be9725c7ce [SSK] lost changes needed to fixup 'charlesmchen/webrtcByDefault'
Previous commit referenced no-longer existent SHA

// FREEBIE
9 years ago
Matthew Chen f4453eb995 Enable WebRTC-based audio and video calls by default.
// FREEBIE
9 years ago
Matthew Chen 92509169a6 [SSK] Update SSK pod to reflect release/2.7.1.
// FREEBIE
9 years ago
Matthew Chen 701b264188 [libPhoneNumber-iOS] update pod.
// FREEBIE
9 years ago
Matthew Chen 82c4ca04c7 [SPK] Release 2.7.1 and prekey cleanup.
// FREEBIE
9 years ago
Matthew Chen e27475f8a8 [SSK] Add “received at” timestamp to all TSMessages so that they may be sorted properly.
// FREEBIE
9 years ago
Matthew Chen e4c3fe378d Update Cocoapods and Carthage submodule.
// FREEBIE
9 years ago
Matthew Chen 3c3f782e7d Clean up prekey usage.
// FREEBIE
9 years ago
Matthew Chen c0f52d1de9 [SSK] Mark "attempting out" messages as "unsent" on app launch
// FREEBIE
9 years ago
Matthew Chen 21e55d3be5 Mark "attempting out" messages as "unsent" on app launch.
// FREEBIE
9 years ago
Matthew Chen fcf1d7af97 Respond to CR.
// FREEBIE
9 years ago
Matthew Chen 2b64d94bad Update SignalServiceKit pod.
// FREEBIE
9 years ago
Matthew Chen 97001018ae Clean up prekey logic.
// FREEBIE
9 years ago
Michael Kirk 2675a724ce [SSK] avoid intermittent YAP deadlock when receiving message
// FREEBIE
9 years ago
Matthew Chen e798964308 Update SignalServiceKit pod.
// FREEBIE
9 years ago
Matthew Chen 06a775b41a Improve the call status messages in conversation view.
// FREEBIE
9 years ago
Matthew Chen 8e2ac368a0 Update SignalServiceKit pod.
// FREEBIE
9 years ago
Michael Kirk 420d717580 [SSK] log when messages are marked as read locally
// FREEBIE
9 years ago
Michael Kirk c621e3a000 [SSK] Missed calls increment unread counter
Avoid deadlock by moving unrelated DB work out of transaction

// FREEBIE
9 years ago
Matthew Chen 72ef6e6007 Update SSK to reflect charlesmchen/messagesFromMeAreAlreadyAutoRead.
// FREEBIE
9 years ago
Michael Kirk 947d345837 SSK update to include latest master (which now includes CallKit)
// FREEBIE
9 years ago
Michael Kirk 7361418274 Merge remote-tracking branch 'origin/master' into feature/webrtc 9 years ago
Michael Kirk 7e825648ef Show alert when trying to call a non-signal contact from Contacts.
// FREEBIE
9 years ago
Matthew Chen 49bb3d942d Clean up ahead of PR.
// FREEBIE
9 years ago
Matthew Chen d294557bdd Rework concurrency in the signaling logic.
// FREEBIE
9 years ago
Michael Kirk feb5a9ed3a [SSK] fix crash when messaging newly unregistered
// FREEBIE
9 years ago
Michael Kirk fff061ff3f Make sure WebRTC preferences are synced *every* call
This slows the UI, but only for people who have locally opted into
WebRTC calls, and the alternative is that users are likely to have stale
settings the first time a pair of people opt-in.

// FREEBIE
9 years ago
Michael Kirk ff7ae4f81b [SSK] Disable resetting unreadable storage (#1643)
// FREEBIE
9 years ago
Michael Kirk d3e6747499 Merge remote-tracking branch 'origin/master' into feature/webrtc 9 years ago
Michael Kirk 4e72ab92c8 Prevent session corruption by using a single serial queue for encrypt and decrypt
coordinate SignalProtocol encryption/decryption on a single serial
queue. Previously message sending encrypted on the sending thread, while
message receiving decrypted on the main thread.

// FREEBIE
9 years ago
Michael Kirk a6029f2545 Merge remote-tracking branch 'origin/master' into feature/webrtc 9 years ago
Michael Kirk c2fae986f2 [SSK] better logging when we fail to get DB keys
// FREEBIE
9 years ago
Michael Kirk 9516ab1106 Bail on startup if DB password is inaccessible
Most likely this would be  because the user hasn't unlocked their device
since last restart.

This behavior existed once before, but the startup ordering is pretty
delicate. So, we're now redundantly checking in SSK in case this
delicate startup logic gets mis-ordered again.

Also fixed the AppDelegate method to check for the proper
applicationState, since it will never be "active" in didFinishLaunching.

fixes https://github.com/WhisperSystems/Signal-iOS/issues/1627

// FREEBIE
9 years ago
Michael Kirk 0e7083ed4e [SSK] remove Cuba from domain fronting
Current implementation is blocked in Cuba, plus there are reports of
Signal working w/o domain fronting anyway.

// FREEBIE
9 years ago
Matthew Chen 1898b9fa19 Merge branch 'charlesmchen/fixWebsocket' into feature/webrtc 9 years ago
Matthew Chen ec16016386 Update to reflect merged SSK branch. 9 years ago
Matthew Chen a023d02ae2 Respond to CR.
// FREEBIE
9 years ago
Matthew Chen 9c4eda54f1 Respond to CR.
// FREEBIE
9 years ago
Matthew Chen cb3f564446 Fix web socket issue.
// FREEBIE
9 years ago
Matthew Chen 773080b11b Update SSK pod to reflect merge of corresponding charlesmchen/webrtcSetting2 branch into mkirk/webrtc.
This branch updates SignalRecipient in ContactsUpdater.

// FREEBIE
9 years ago
Matthew Chen 654bdb1a85 Add WebRTC setting.
// FREEBIE
9 years ago
Matthew Chen 4a65a88512 Rework new call view.
// FREEBIE
9 years ago
Matthew Chen 26a6e391b3 Fix pod.
// FREEBIE
9 years ago
Michael Kirk a17873291b Fix up tests
// FREEBIE
9 years ago
Michael Kirk 647b2b37e9 WIP: WebRTC calling
* Ensure NotificationsManager has dependencies
    Otherwise it's easy to mess up the order of the required dependencies.
* move AccountManager into Environment, it's heavy to construct

// FREEBIE
9 years ago
Matthew Chen ee63e9116c Update to reflect changes in SSK https://github.com/WhisperSystems/SignalServiceKit/pull/85.
// FREEBIE
9 years ago
Matthew Chen 6106326b34 Update to reflect changes in SSK https://github.com/WhisperSystems/SignalServiceKit/pull/85.
// FREEBIE
9 years ago
Matthew Chen a70d5f88ba Fix build break related to SignalServiceKit pod.
// FREEBIE
9 years ago