Commit Graph

660 Commits (e5f57a6e941be6ea51a3483318431c8cdddef3c7)

Author SHA1 Message Date
Matthew Chen 465711c2cb Add script to extract and gather analytics event names.
// FREEBIE
7 years ago
Michael Kirk 91ad2ec32b Properly handle too-large messages
1. Take note of any large messages.
2. If they are way too large, we just drop them on the floor.

// FREEBIE
7 years ago
Matthew Chen 4ac7600c07 Respond to CR.
// FREEBIE
7 years ago
Michael Kirk 4d8429186d Store undecrypted envelopes before doing any processing.
This lets us clear the server side queue immediately, and paves the way
for retry, give up logic.

// FREEBIE
7 years ago
Matthew Chen 2418baec15 Respond to CR.
// FREEBIE
7 years ago
Michael Kirk a5f067936c migration to fix any half-registered users
// FREEBIE
7 years ago
Matthew Chen 4059c34170 [SSK] Migrating changes from obsolete SSK repo.
// FREEBIE
7 years ago
Matthew Chen 4f5b2993b0 [SSK] Migrating changes from obsolete SSK repo.
// FREEBIE
7 years ago
Michael Kirk e52248fe39 Localize JSQMessagesViewController within Signal
// FREEBIE
7 years ago
Michael Kirk 1b8efb5255 CI runs SSK tests
Clean up Makefile cruft

// FREEBIE
7 years ago
Michael Kirk 4b69126d1a Use interned SSK
// FREEBIE
7 years ago
Matthew Chen 1600b1f440 [SSK] Avoid nil country names on iOS 8.
FREEBIE
7 years ago
Michael Kirk 878806aa52 [JSQMVC] Add Croatian translations
// FREEBIE
7 years ago
Matthew Chen 235a842137 [SSK] Use existing transaction in cleanup.
// FREEBIE.
7 years ago
Matthew Chen 8884cb5a2b [SSK] Fix copy and paste of voice messages.
// FREEBIE
7 years ago
Matthew Chen 0357081cc7 [SSK] Run orphan cleanup on startup.
// FREEBIE
7 years ago
Michael Kirk 4b7924cc72 [SSK] update CI gems
// FREEBIE
7 years ago
Michael Kirk d15da6e6d4 fix bubble calculator tests
// FREEBIE
7 years ago
Michael Kirk 3eb90ba383 Disable singleton assert for tests
introduce a new build configuration, used by tests, which disables
singleton asserts

// FREEBIE
7 years ago
Michael Kirk cc31d88f29 [SSK] Fix persist view for upgrade scenario
// FREEBIE
7 years ago
Michael Kirk f61980e376 [SSK] remove unhelpful logging
// FREEBIE
7 years ago
Michael Kirk dbf0235974 [SSK] persist thread view
// FREEBIE
7 years ago
Matthew Chen 3e11c10c9c [SSK] Don’t sync verification state until app has finished becoming active.
// FREEBIE
7 years ago
Matthew Chen 9e5447f1d4 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 944cd7beef Show app update nag on launch if necessary.
// FREEBIE
7 years ago
Michael Kirk 8e891eb357 Merge branch 'hotfix/2.13.3.0'
// FREEBIE
7 years ago
Matthew Chen e0ee4e42f1 [SSK] Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
7 years ago
Matthew Chen dc1453264b [SSK] Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
7 years ago
Matthew Chen 7135895c1c Modify TSStorageManager to use separate shared read and write connections.
// FREEBIE
7 years ago
Michael Kirk 7b04823aaf [SSK] FIX: verifiying unregistered user prints "no longer registered"
error on every launch

// FREEBIE
7 years ago
Michael Kirk 1f9f066fa9 print call record when declining a call
// FREEBIE
7 years ago
Michael Kirk dbad3b4f8d [SSK] MessagesManager observes for badge count
// FREEBIE
7 years ago
Michael Kirk d0d4e67615 update badge count when app is in background
// FREEBIE
7 years ago
Michael Kirk 544dec1af8 [SSK] Fix typo in assert
// FREEBIE
7 years ago
Michael Kirk 46bf05182a [SSK][SPK] fix upstream tests
No changes that should affect running client.

// FREEBIE
7 years ago
Michael Kirk ab40bc7242 [SSK] sync key version
// FREEBIE
7 years ago
Matthew Chen 1eff5513b3 [SSK] Archive sessions upon identity change.
// FREEBIE
7 years ago
Michael Kirk 3e43eef534 [SSK][SPK] Archive all recipient's sessions on identity change.
// FREEBIE
7 years ago
Matthew Chen ad17c444f7 [SSK] Add creation timestamp to attachment streams.
// FREEBIE
7 years ago
Michael Kirk 140625b2a0 [SSK] verification sync
// FREEBIE
7 years ago
Michael Kirk a933fbf215 sync verifications with contact syncing
// FREEBIE
7 years ago
Matthew Chen e6aacf0bca [SSK] Reduce chattiness of logs; increase log file sizes.
// FREEBIE
7 years ago
Matthew Chen eff1974eeb [SSK] Reduce chattiness of logs; increase log file sizes.
// FREEBIE
7 years ago
Matthew Chen 12e083b4e0 [SSK] Fix OWSCFail() macro.
// FREEBIE
7 years ago
Matthew Chen c7d9236526 [SSK] Ensure verification UI is updated to reflect incoming verification state sync messages.
// FREEBIE
7 years ago
Matthew Chen 6a1f766657 [SSK] Improve perf of attachment stream file path upgrade.
// FREEBIE
7 years ago
Michael Kirk 11fa08470d [JSQ] Fix: can't dismiss keyboard after sending
// FREEBIE
7 years ago
Matthew Chen eb17a7b189 [SSK] Refine observation of async registration completion.
// FREEBIE
7 years ago
Matthew Chen 5ae4b99f89 Refine observation of async registration completion.
// FREEBIE
7 years ago
Matthew Chen 8948a54e2f Enable verification state sync.
// FREEBIE
7 years ago
Michael Kirk 62c096aa15 [SSK] append/remove key type as necessary to fix verification syncing
// FREEBIE
7 years ago
Michael Kirk 41065e692e [SSK] fix crash while syncing verifications
// FREEBIE
7 years ago
Matthew Chen b53ab8a85c [SSK] Respond to post-holiday code reviews.
// FREEBIE
7 years ago
Matthew Chen bd440f0878 Respond to post-holiday code reviews.
// FREEBIE
7 years ago
Matthew Chen f4ae0dbbab [SSK] Rework verification state sync per latest proto schema.
// FREEBIE
7 years ago
Matthew Chen 6444754cbb [SSK] Cache the attachments folder in TSAttachmentStream. Add isFirstLaunch method to AppVersion. Add a “last app completed launch” version.
// FREEBIE
7 years ago
Matthew Chen f098df9056 [SSK] Upgrade attachment streams on a serial queue.
// FREEBIE
7 years ago
Matthew Chen 42bf2106bd [SSK] Avoid crashing on startup due to database view creation. Use transactions in the jobs.
// FREEBIE
7 years ago
Matthew Chen c7426f9343 Avoid crashing on startup due to database view creation.
* Substitute unread view for unseen view until unseen view is ready.
* Register as many views as possible async.
* Perform blocking, safe migrations before async registration of views.
* Add debug settings view for internal app stats.
* Show blocking overlay until async registration of database views is complete.
* Convert version migrations to use AppVersions.

// FREEBIE
7 years ago
Matthew Chen 7c1d3fe23c [SSK] Remove “block on safety number changes” setting in preferences.
FREEBIE
7 years ago
Matthew Chen 05e316381b Remove “block on safety number changes” setting in preferences.
// FREEBIE
7 years ago
Matthew Chen cf0319f025 [SSK] Reduce number of database views.
// FREEBIE
7 years ago
Matthew Chen 575d631123 Reduce number of database views.
// FREEBIE.
7 years ago
Matthew Chen d1097c3610 [SSK] Remove an unnecessary database view.
// FREEBIE
7 years ago
Matthew Chen 35879046c3 Remove OpenSSL pod.
// FREEBIE
7 years ago
Matthew Chen 1057e40008 Fix OpenSSL cocoapod.
// FREEBIE
7 years ago
Matthew Chen 1818aea628 [SSK] Ensure message sends only succeed or fail once. Add “group creation failed” error message.
// FREEBIE
7 years ago
Matthew Chen 6f1f1fac80 Improve handling of group creation failures.
// FREEBIE
7 years ago
Matthew Chen ab043cea5e [SSK] Improve logging around incoming messages.
// FREEBIE
7 years ago
Matthew Chen 5ecf38117c [SSK] Rework how messages are marked read.
* Filter messages shown in the home view.
* When we receive a read receipt, mark older messages in thread as read.
* When we receive a read receipt, start expiration of older messages in thread.
* When we receive a read receipt, hide notifications for older messages in thread.
7 years ago
Matthew Chen 027cd8cb34 Rework how messages are marked read.
// FREEBIE
7 years ago
Matthew Chen 3c7d47f565 [SSK] Remove legacy message sending.
// FREEBIE
7 years ago
Matthew Chen df21e616d1 [SSK] Don’t update home view sort order in response to dynamic interactions or verification state changes. We only want to create change messages in response to user activity, on any of their devices.
// FREEBIE
7 years ago
Matthew Chen cc5e810211 [SSK] Add a default description for verification state messages.
// FREEBIE
7 years ago
Michael Kirk 0a55b965b6 [SSK][SPK] Archive sessions when fetching profile
// FREEBIE
7 years ago
Michael Kirk 6715e76c99 Prefer archiving, to deleting old sessions for better handling of out of
order decryption.

// FREEBIE
7 years ago
Matthew Chen bc63a72c25 Add verification state change messages.
// FREEBIE
7 years ago
Michael Kirk 64efa2b3c6 [SSK] remove redundant SN changes when sending to new identity
// FREEBIE
7 years ago
Michael Kirk 75bab75dc8 Show no redundant error when failing to send due to changed identity
The old "blocking" style SN alerts are deprecated. We maintain the
functionality to decrypt incoming messages from legacy SN alerts so that
users have time to recover their undecrypted messages.

// FREEBIE
7 years ago
Matthew Chen a1d3e360df [SSK] Sync verification state.
// FREEBIE
7 years ago
Michael Kirk 9ec6ec5e4e [SSK] create missed call notification in threads
// FREEBIE
7 years ago
Michael Kirk 1a3204bf46 create interaction in thread when missing call due to changed identity
// FREEBIE
7 years ago
Michael Kirk 32d05bbe08 [SSK] avoid deadlock on unknown session
// FREEBIE
7 years ago
Michael Kirk 2692977168 [SSK] New identity manager
// FREEBIE
7 years ago
Matthew Chen ceb210748e Sketch out OWSIdentityManager.
// FREEBIE
7 years ago
Matthew Chen e80a00a6b2 [SSK] Format fail messages.
// FREEBIE
7 years ago
Matthew Chen 58f360b620 [SSK] Rework and unify the system messages.
// FREEBIE
7 years ago
Matthew Chen 05fb7dcb3f [SSK] Remove obsolete TSUIDatabaseConnectionDidUpdateNotification notification.
// FREEBIE
7 years ago
Michael Kirk eea0d7be7f [SSK] update to merged
// FREEBIE
7 years ago
Michael Kirk 5b12f4afae Prevent outgoing calls started from various places unless have been seen
e.g. from contacts app

// FREEBIE
7 years ago
Michael Kirk 130aa132a0 Reject incoming calls from an unseen changed identity
// FREEBIE
7 years ago
Matthew Chen 6b4a5398ef [SPK] Improve logging around updating and using prekeys.
// FREEBIE
7 years ago
Michael Kirk 76a0f88f7c [SSK] dont cache session store
// FREEBIE
7 years ago
Matthew Chen c0753152db [SPK] Improve logging around updating and using prekeys.
// FREEBIE
7 years ago
Matthew Chen d752a9b030 [SSK] Add incoming and outgoing message database views.
// FREEBIE
7 years ago
Matthew Chen f49309bf66 Add incoming and outgoing message database views.
// FREEBIE
7 years ago
Matthew Chen 19a2a1539e [SSK] Clean up timer usage.
// FREEBIE
7 years ago
Matthew Chen cdda0d4f02 [SSK] Fix “mark as read” logic.
// FREEBIE
7 years ago
Matthew Chen 85d54798fe [SSK] Changes for unseen indicator.
// FREEBIE
7 years ago
Matthew Chen 7afcad81c6 Fix data type issue around losing millisecond precision in message expiration times.
// FREEBIE
7 years ago
Matthew Chen 63f014fab4 [SSK] Cache display names for accounts.
// FREEBIE
7 years ago
Matthew Chen dd3394be1b Cache display names for accounts.
// FREEBIE
7 years ago
Michael Kirk 85d0d27505 [SSK] remove some redundant error notifications
// FREEBIE
7 years ago
Michael Kirk 37e0b1a004 Sending to unconfirmed idnetity presents confirmation
Rather than send/fail

// FREEBIE
7 years ago
Michael Kirk 1a03be8ae7 Fetch safety number upon entering thread
* uniform method to get recipients in group/contact thread
  * use it to clean up markAsSeenJob

// FREEBIE
7 years ago
Matthew Chen 1d792d1878 Rename audio duration and image size methods in TSAttachmentStream.
// FREEBIE
7 years ago
Michael Kirk fc37e251de [SSK] log error on failure
// FREEBIE
7 years ago
Michael Kirk 4700294c26 [SSK][SPK] Safety Number Updates
// FREEBIE
7 years ago
Michael Kirk bb25d2beb6 IdentityKeyStore changes
1) Always accept keys from incoming messages

2) Block sending only if it's a recent change, or if always
   block is enabled

// FREEBIE

// FREEBIE
7 years ago
Matthew Chen f30cd7c7fa [SSK] Remove invalid assert in socket manager.
// FREEBIE
7 years ago
Matthew Chen d8ade3288c [SSK] Cache image size and audio duration on attachments.
// FREEBIE
7 years ago
Matthew Chen b1f7cf0d62 Cache image size and audio duration on attachments.
// FREEBIE
7 years ago
Matthew Chen b0005ea932 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 2e36f41838 Add support for manually activating censorship circumvention.
// FREEBIE
7 years ago
Matthew Chen 7b70fe674a “Add to contacts” offer.
// FREEBIE
7 years ago
Matthew Chen 4223766e60 [SSK] Try the country code for the local phone number when parsing phone numbers.
// FREEBIE
7 years ago
Matthew Chen e7de25ab01 [SSK] Pin YapDatabase to v2.9.3 to avoid v.3.x.
// FREEBIE
7 years ago
Matthew Chen cab9e3d3db [SSK] Persist attachment file paths.
// FREEBIE
7 years ago
Matthew Chen e4f31b5e40 Rename attachment source filename property.
// FREEBIE
7 years ago
Michael Kirk 7e031b7306 [SSK] Show SN changes in groups, and include name
// FREEBIE
7 years ago
Michael Kirk dfd438e5f8 revert Yap update until next release
// FREEBIE
7 years ago
Michael Kirk 557488bc7d return iOS8 support in project files
// FREEBIE
7 years ago
Matthew Chen 07cc8baa60 [SSK] Honor the local calling code in select recipient view.
// FREEBIE
7 years ago
Matthew Chen 6833fb7181 [SSK] Retry push token registration.
// FREEBIE
7 years ago
Michael Kirk 72168e2881 [SSK] faster contact parsing
// FREEBIE
7 years ago
Michael Kirk 20ad9114e2 [SSK] Reduce time between editing contacts and seeing those changes in
the app

cache phone number parsing

// FREEBIE
7 years ago
Matthew Chen 09f8a20acb [SSK] Revert "Merge branch 'charlesmchen/autoMarkAsRead'"
// FREEBIE
7 years ago
Matthew Chen 625b1d0200 [SSK] Only reply to group info requester & Don’t reply to “request group info” messages from non-members of the group in question.
// FREEBIE
7 years ago
Michael Kirk da58eb18ad partial revert of previous pod update
// FREEBIE
7 years ago
Matthew Chen 67c3bca913 [SSK] Move filename property to TSAttachment.
// FREEBIE
7 years ago
Matthew Chen 96e155c75e Rework appearance of voice messages and audio attachments.
// FREEBIE
7 years ago
Matthew Chen c7777bcb13 [SSK] Show example phone numbers.
// FREEBIE
7 years ago
Matthew Chen 0adcd157da [SSK] Don’t ignore “unnamed” phone numbers.
// FREEBIE
7 years ago
Matthew Chen eb385f1e97 [SSK] Rework the “disappearing messages” logic.
// FREEBIE
7 years ago
Matthew Chen 8871331cfa [SPK] Update license.
// FREEBIE
7 years ago
Matthew Chen 387f1018f5 [SSK] Auto-rejoin groups by emitting and responding to “request group info” messages.
// FREEBIE
7 years ago
Michael Kirk e295f92943 [SSK] Safer SignedPreKey deletion policy
// FREEBIE
7 years ago
Matthew Chen d535ce3155 [SSK] Flag voice messages as such in protos.
// FREEBIE
7 years ago
Matthew Chen 560122067c [SSK] Prefer to deduce the MIME type from the file extension using lookup, not the UTI type.
[SSK] Try to deduce attachment MIME type from the file extension if possible.

// FREEBIE
7 years ago
Matthew Chen 0137e01aff Try to deduce attachment MIME type from the file extension if possible.
// FREEBIE
7 years ago
Matthew Chen bbf099894c [SSK] Fix a hotspot in the phone number parsing logic.
// FREEBIE
7 years ago
Matthew Chen 057bb76e66 [SSK] Rework handling of phone number names.
// FREEBIE
7 years ago
Matthew Chen 0c4351a908 Use SignalAccount class to sync contacts.
// FREEBIE
7 years ago
Michael Kirk 835ab3dd93 [SSK] fix some compiler warnings
// FREEBIE
7 years ago
Michael Kirk 83a089f429 [SSK] better sender logs
// FREEBIE
7 years ago
Michael Kirk b24cf29189 don't request contacts until necessary
Most commonly this will be after hitting the "compose" button

But also we'll do it in the SignalViewController once you've received a
message.

- get rid blocking contacts nag
- use Contacts framework simplifies logic
- remove dead AB code

// FREEBIE
7 years ago
Matthew Chen 931b6b4200 [SSK] Minor cleanup.
// FREEBIE
7 years ago
Matthew Chen 563ccf671e [SSK] Temporary change to improve read receipt logging.
// FREEBIE
7 years ago
Matthew Chen c2cdeb3bcd Remove SCWaveformView.
// FREEBIE
7 years ago
Michael Kirk 4b6bfa4c4c "home", "other" and "work" instead of "Unknown" phone label
// FREEBIE
7 years ago
Matthew Chen cb293f286a [SSK] Add SignalAccount class, Extract labels for phone numbers.
// FREEBIE
7 years ago
Matthew Chen 42768294ee Extract labels for phone numbers.
// FREEBIE
7 years ago
Michael Kirk e1162fa641 [SSK] Better debugging information
- explicitly log type of received message vs. just "encrypted message"
  for better call debugging
- debug tool to print signed prekey report

// FREEBIE
7 years ago
Matthew Chen 788ec4ce01 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen 8bf4cb83a5 [SSK] Improve handling of whitespace in contacts.
// FREEBIE
7 years ago
Matthew Chen d248f6117f [SSK] Ignore oversize messages.
// FREEBIE
7 years ago
Michael Kirk b3fc16b0ba [SSK] handle synced reset-session messages
// FREEBIE
7 years ago
Michael Kirk 5bbcc23da5 [SSK] Do not retry fatal message send errors.
e.g. don't retry group sends when someone had a SN change

// FREEBIE
7 years ago
Michael Kirk d9e3e87735 New downloading progress view (#2006)
Replace previous "scary" warning-style attachment notifications with
something less alarming.

Includes file name and file type emoji when discernable.

// FREEBIE
7 years ago
Matthew Chen 67e94e2b55 [SSK] Do not try to resend unsaved outgoing messages when accepting a safety number change.
// FREEBIE
7 years ago
Matthew Chen 3c8635c352 [SSK] Add muting of threads.
// FREEBIE
7 years ago
Matthew Chen ea848f31e6 [SSK] Fix outgoing message status for messages sent from linked devices.
// FREEBIE
7 years ago
Matthew Chen dd807f676c [SSK] Rework outgoing message state & refine error handling for outgoing group messages.
// FREEBIE
7 years ago
Matthew Chen f41762c316 [SSK] Avoid lost messages.
// FREEBIE
7 years ago
Matthew Chen f9b51c01f4 [SSK] De-bounce the prekey checks.
// FREEBIE
7 years ago
Michael Kirk 0743722782 [SSK] ensure accepted SPKs are marked
// FREEBIE
7 years ago
Matthew Chen 9c6f76253a [SSK] Honor attachment filenames.
// FREEBIE
7 years ago
Matthew Chen dc3a382c23 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen f38f3d8887 [SSK] Update SignalAttachment to allow arbitrary attachments.
// FREEBIE
7 years ago
Matthew Chen 33593921f6 [SSK] Rework socket manager.
// FREEBIE
7 years ago
Michael Kirk 1d9de09429 [SSK] Make sure we can return multiple recipients matches
// FREEBIE
7 years ago
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
7 years ago
Matthew Chen 1d2e5d218d [SSK] Create block offer when non-contacts send you a message.
// FREEBIE
7 years ago
Matthew Chen 8490be6ed9 [SSK] Remove the properties related to Redphone and WebRTC support.
// FREEBIE
7 years ago
Matthew Chen 2fd8a13a3c [SSK] Improve attachment upload progress indicator.
// FREEBIE
7 years ago
Michael Kirk 2af89c9a2e [SSK][SPK] only assert dispatch in DEBUG
// FREEBIE
7 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
7 years ago
Michael Kirk 398ee22f50 [SSK] rename cipher queue to sessionStoreQueue
// FREEBIE
7 years ago
Michael Kirk a951d11d97 [SSK] move iOSVersion to SSK
// FREEBIE
7 years ago
Michael Kirk 4494a95a62 Block list is two words. Update code/comments/constants
// FREEBIE
7 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
7 years ago
Matthew Chen 3537518268 [SSK] Don’t block outgoing group messages.
// FREEBIE
7 years ago
Matthew Chen f604cfb553 Apply assert to ensure singletons are only created once & filter incoming messages using the blacklist.
// FREEBIE
7 years ago
Matthew Chen 5ff454fd90 Fix double creation of NotificationsManager singleton.
// FREEBIE
7 years ago
Matthew Chen d00c892158 Apply assert to ensure singletons are only created once.
// FREEBIE
7 years ago
Michael Kirk 7153994929 [SSK] [SPK] Update SignalProtocolKit and SignalServiceKit
// FREEBIE
7 years ago
Michael Kirk 7f239c8040 [SSK] + Enforce singleton access for MessagesManager and MessageSender
// FREEBIE
7 years ago
Michael Kirk 4c0242ee17 [spk] Update SignalProtocolKit
// FREEBIE
7 years ago
Matthew Chen 5138539d99 [SSK] Fix sharing of oversize text messages.
// FREEBIE
7 years ago
Matthew Chen 306895ea6d [SSK] Improve support for arbitrary attachments.
// FREEBIE
7 years ago
Matthew Chen 630fcedff0 [SSK] Accept arbitrary incoming attachments.
// FREEBIE
7 years ago
Matthew Chen 32d856ff2d [SSK] Improve handling of incomplete and failed attachment downloads.
// FREEBIE
7 years ago
Matthew Chen 5250d327e4 [SSK] Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen faf75e25c2 [SSK] Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen 74f939b520 Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen 9db33a9651 Remove RedPhone code.
// FREEBIE
7 years ago
Matthew Chen 00a29dea4d [SSK] Filter out country codes properly.
// FREEBIE
7 years ago
Michael Kirk ea62e21611 [SSK] fix attachment crash on iOS9
// FREEBIE
7 years ago
Michael Kirk f29ca7851f Move PureLayout back to cocoapods for now
This introduced some unexpected crashes related to frameworks in Swift.

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

// FREEBIE
7 years ago
Matthew Chen eb8d4388c6 [SSK] Avoid YapDatabase deadlock in OWSMessageSender.
// FREEBIE
7 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
7 years ago
Matthew Chen fe18cb9a39 [SSK] Use a separate sending queue for each conversation & Fix “send to self operations never complete” issue.
// FREEBIE
7 years ago
Michael Kirk 34831ea105 [SPK][SSK] Ensure old sessions removed when identity changes
// FREEBIE
7 years ago
Matthew Chen 949a7cd9a2 [SSK] Further refinements to phone number parsing.
// FREEBIE
7 years ago
Matthew Chen 95de36d671 [SSK] Improve logging around decryption exceptions.
// FREEBIE
7 years ago
Matthew Chen 50ad6e4f62 [SSK] Update SSK pod to reflect websocket lifecycle edge cases.
// FREEBIE
7 years ago
Matthew Chen 5797cb1093 [SSK] Update SSK to reflect cancel oversize attachment downloads. 7 years ago
Michael Kirk 49da1aea1e [SSK] Only send messages on main thread
// FREEBIE
7 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
7 years ago
Michael Kirk 8ed10c3a9b [SSK] Don't suspend app until message sending completes.
// FREEBIE
7 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
7 years ago
Michael Kirk 0ecbbfaefe [SSK] backwards compatible attachment digests
// FREEBIE
7 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
7 years ago
Matthew Chen 0993860376 [SSK] Update SSK pod to reflect corresponding changes.
// FREEBIE
7 years ago
Michael Kirk 99c982fbb2 change ZXing to framework for faster incremental compiles in xcode
// FREEBIE
7 years ago
Matthew Chen c68bfac71d [SSK] Update SSK pod to fix build break.
// FREEBIE
7 years ago
Matthew Chen bdc729ad29 Respond to CR.
// FREEBIE
7 years ago
Michael Kirk d8c4558c80 [SSK] Attachment digests
// FREEBIE
7 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
7 years ago
Matthew Chen e96692d702 Respond to CR.
// FREEBIE
7 years ago
Matthew Chen c35c118dcd Respond to CR.
// FREEBIE
7 years ago
Michael Kirk 8104ffa129 [SSK] Dedupe incoming messages by timestamp/device
// FREEBIE
7 years ago
Michael Kirk be9725c7ce [SSK] lost changes needed to fixup 'charlesmchen/webrtcByDefault'
Previous commit referenced no-longer existent SHA

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

// FREEBIE
8 years ago
Matthew Chen 72ef6e6007 Update SSK to reflect charlesmchen/messagesFromMeAreAlreadyAutoRead.
// FREEBIE
8 years ago
Michael Kirk 947d345837 SSK update to include latest master (which now includes CallKit)
// FREEBIE
8 years ago
Michael Kirk 7361418274 Merge remote-tracking branch 'origin/master' into feature/webrtc 8 years ago
Michael Kirk 7e825648ef Show alert when trying to call a non-signal contact from Contacts.
// FREEBIE
8 years ago
Matthew Chen 49bb3d942d Clean up ahead of PR.
// FREEBIE
8 years ago
Matthew Chen d294557bdd Rework concurrency in the signaling logic.
// FREEBIE
8 years ago
Michael Kirk feb5a9ed3a [SSK] fix crash when messaging newly unregistered
// FREEBIE
8 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
8 years ago
Michael Kirk ff7ae4f81b [SSK] Disable resetting unreadable storage (#1643)
// FREEBIE
8 years ago
Michael Kirk d3e6747499 Merge remote-tracking branch 'origin/master' into feature/webrtc 8 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
8 years ago
Michael Kirk a6029f2545 Merge remote-tracking branch 'origin/master' into feature/webrtc 8 years ago
Michael Kirk c2fae986f2 [SSK] better logging when we fail to get DB keys
// FREEBIE
8 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
8 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
8 years ago
Matthew Chen 1898b9fa19 Merge branch 'charlesmchen/fixWebsocket' into feature/webrtc 8 years ago
Matthew Chen ec16016386 Update to reflect merged SSK branch. 8 years ago
Matthew Chen a023d02ae2 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 9c4eda54f1 Respond to CR.
// FREEBIE
8 years ago
Matthew Chen cb3f564446 Fix web socket issue.
// FREEBIE
8 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
8 years ago
Matthew Chen 654bdb1a85 Add WebRTC setting.
// FREEBIE
8 years ago
Matthew Chen 4a65a88512 Rework new call view.
// FREEBIE
8 years ago
Matthew Chen 26a6e391b3 Fix pod.
// FREEBIE
8 years ago
Michael Kirk a17873291b Fix up tests
// FREEBIE
8 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
8 years ago
Matthew Chen ee63e9116c Update to reflect changes in SSK https://github.com/WhisperSystems/SignalServiceKit/pull/85.
// FREEBIE
8 years ago
Matthew Chen 6106326b34 Update to reflect changes in SSK https://github.com/WhisperSystems/SignalServiceKit/pull/85.
// FREEBIE
8 years ago
Matthew Chen a70d5f88ba Fix build break related to SignalServiceKit pod.
// FREEBIE
8 years ago
Matthew Chen 2ce4d39f9e Respond to CR.
// FREEBIE
8 years ago
Matthew Chen 2dac6c888a Update SignalServiceKit pod.
* Fetch messages when app becomes active.
8 years ago
Michael Kirk ddba843d44 Censorship circumvention in Egypt and UAE
* domain fronting
* non-websocket message fetching

// FREEBIE
8 years ago
Michael Kirk c4baf5a625 [SSK] Avoid bricking signal if a key is temporarily unreadable
// FREEBIE
8 years ago
Michael Kirk c3a22d7da6 [SSK] Fix contact sync when no thread to self exists
fixes #1497

// FREEBIE
8 years ago
Michael Kirk 32a05dabce [SPK] Update SignalProtocolKit (AxolotlKit) (#1549)
// FREEBIE
8 years ago
Michael Kirk e2d725a041 [SSK] Ignore messages with unknown Content
Most like it would indicate a new feature that this old client doesn't
understand. Otherwise we'd print an empty bubble.

// FREEBIE
8 years ago
Michael Kirk 753c445bfc [SSK] Update libphonenumber
// FREEBIE
8 years ago
Russ Shanahan e7126f8c60 Less confusing "#" avatar for unknown Contact instead of "+"
For consistency with the Android and Desktop client behavior.

* Show a placeholder avatar when no image, initials (#1512)

  If all we know about the user is their phone number, their avatar image
  is rendered as a placeholder. Previously, it would render the first few
  characters of their phone number as if they were initials (eg. "+")

* Rename, extend OWSContactsManager methods (#1512)

  Rename from: nameStringForPhoneIdentifier
           to: displayNameForPhoneIdentifier

  Also, add:
  - (BOOL)nameExistsForPhoneIdentifier:(NSString *)identifier;

  Which reports whether there's any "name" for a contact.

* Remove unused typedefs

  These aren't used in the project anymore, and they were causing
  compiling warnings due to a lack of nullability indication.

* Resolve some OWSContactsManager nullability warnings

  Did a pass through all of the existing nullability warnings in
  OWSContactsManager. Tried to pick descriptors that best reflected the
  behavior of the methods.

// FREEBIE
8 years ago
Russ Shanahan 81e1ec4b9e Compare both first and last names when sorting (#1487)
If two names have the same last name, ensure we fall back on the
first name when sorting them.

// FREEBIE
8 years ago
Josh Schneier 896dd026d2 Remove DJWActionSheet 8 years ago
Michael Kirk f30c733ef3 Custom contact picker for invite flow
Preferred to the system contact picker because:
1. removes "group" clutter from header, unlikely to be used much.
2. can select while searching
3. fixes unified contact problem where e.g.
   If only one of your contact has a phone number, they appear disabled
   when choosing to invite via messaging, even though the other linked
   contact *does* have a phone number.
4. label users w/o email so it's clearer why they can't be selected

Also:

* Twitter share-image was too tall

// FREEBIE
8 years ago
Michael Kirk 7120ca1192 Make sure we're laying out contact cell after assigning avatar
// FREEBIE
8 years ago
Michael Kirk 0aa226f3d1 [SSK] If a new message type is introduced, ignore it
rather than printing an empty bubble.

// FREEBIE
8 years ago
Michael Kirk de7752ab20 Revert 50abf4d02d
The real problem was addressed (or, worked around) here:
1eb234e8ba

// FREEBIE
8 years ago
Michael Kirk 9b2c03793c [SSK] explicit newlines in safety numbers
// FREEBIE
8 years ago
Michael Kirk ee29fff0da [SSK] Default to blocking changed Safety Numbers
// FREEBIE
8 years ago
Michael Kirk c5be8f2d88 Don't include phone number in scannable safety number QR code
also fixes #1455

// FREEBIE
8 years ago
Michael Kirk c2aa17e362 Changed Safety numbers no longer block communication
When your partner changes their identity key (e.g. by reinstalling),
you'll see a notice alongside their message, but it will no longer
prevent the message from showing. aka "non blocking".

Existing users will be opted into the previous blocking behavior.

This is configurable for all users in Settings > Privacy.

// FREEBIE
8 years ago
Michael Kirk 28a2a4610c Fix compiler warnings.
// FREEBIE
8 years ago
Michael Kirk 368db7e553 [SSK] Only need to fetch prekey once
Plus related rate limit translations

// FREEBIE
8 years ago
Michael Kirk 23c80748e6 Hide safety numbers until you've exchanged keys
// FREEBIE
8 years ago
Michael Kirk 1912fbde72 [SSK] Send group messages as long as one recipient is found
// FREEBIE
8 years ago
Michael Kirk c401f764ef [SSK] Fix crash on messaging unregistered user
// FREEBIE
8 years ago
Michael Kirk c6a2fbff23 Tapping corrupted message opens "session reset" activity
This action was previously hidden under a secret longpress gesture in
the fingerprint view controller.

Ideally we'd never receive corrupted messages, but at the point we do,
our sessions are out of whack, and the only recovery option is to reset.
Let's help our users do that.

* Resetting session sends END_SESSION message

  Otherwise the remote side wouldn't know we reset the session and will
  send us a message on the old ratchet.

* Don't reset their identity key when resetting sender ratchet.

* Updated translations

// FREEBIE
8 years ago
Michael Kirk 1dd06a5e6c Fix registration flow / Keep push tokens in sync
* Separate registering an account from registering for push notifications
  * Allows us to complete registration without prompting user for
    notification settings.

UX Changes
----------
* Automatically keep push tokens in sync on startup.
  Push tokens *can* change, though they rarely do. It happens more often
  for people switching between appstore/beta builds.

  fixes #1174

* Show alert with registration failure
  * add secret 8-tap debug log gesture to registration flow

* Move registration to separate flow
  * don't see flash of inbox when first launching

* show useful error messages when given wrong code / no code

* remove background fetch
  We werent using it, but only relying on a side effect of it which is
  no longer necessary.

Code Changes
------------

* More registration logging.

* Install PromiseKit with carthage

  Our dependencies are not yet framework compatible, so we can't use
  cocoapods.

* Merge preferences util "category" into superclass.

  The immediate reason for this is Swift interop was assuming optional
  types were not optional, and exploding when a value was nil.

  This is clearer anyway, since we were treating it like a subclass, and
  it was the only thing using the class anyway.

* auto-genstrings now searches *.swift (and *.h, which was previously
  broken) for translateable strings.

// FREEBIE
8 years ago
Michael Kirk cc8c8d61b4 [SSK] Update to prevent session corruption
// FREEBIE
8 years ago
Michael Kirk 50abf4d02d [JSQMVC] Fix crash on delete when under load.
Hack to fix https://github.com/jessesquires/JSQMessagesViewController/issues/1885

This doesn't happen often, but is reproducible under simulated message
churn (~50 insert/update/deletes randomly spaced over 10 seconds).

During performBatchUpdates, the collectionViewLayout can call
layoutAttributesForElementsInRect which can reference the just-deleted
item's
view. (The view presumably hasn't been deleted yet, but will be by the
time
performBatchUpdates is complete).

It's opaque how layoutAttributesForElementsInRect get's it's list of
views. I
can only speculate how this works based on debugging, but it seems that
the
CollectionFlowLayout keeps an internal list of item frames, which when
crashing
still contain items corresponding to the to-be-deleted items.

In any case, it seems like a bug that JSQMVC would ever attempt to get
layoutAttributes for an item which doesn't exist in the datasource.
8 years ago
Michael Kirk eded20f1f5 [SSK] Don't send empty message to self after changing disappearing timer
previously fixed in: SSK:91fcd01632a81f2aa67d2d94b97c68d519e6881a

But got lost in a rebase after moving TSMessagesManager+sendMessage to
OWSMessageSender.

// FREEBIE
8 years ago