Commit Graph

148 Commits

Author SHA1 Message Date
Michael Kirk
104645f97b Safely pass exception across dispatch bounds
// FREEBIE
2017-01-31 09:46:25 -05:00
Michael Kirk
fe3ec457fa Disable resetting unreadable storage
Until we have better data on why this occurs, we don't want to risk
blowing users message archive.

// FREEBIE
2017-01-25 16:39:26 -05:00
Michael Kirk
32aad85a78 Merge pull request #98 from WhisperSystems/mkirk/session-corruption
Prevent session corruption by using same queue for encrypt vs. decrypt
2017-01-25 10:54:44 -05:00
Michael Kirk
5d863418ea Narrow the scope of code run on SessionCipher queue
And run all non-cipher code on the main thread.

Note: Running encryption on the sessionCipher queue is more about
serializing access to session mutations than it is about any performance
gains.

// FREEBIE
2017-01-24 15:52:58 -05:00
Michael Kirk
3216fd3714 Prevent session corruption by using same queue for encrypt vs. decrypt
// FREEBIE
2017-01-24 15:00:38 -05:00
Michael Kirk
a112930277 Merge branch 'mkirk/dont-reset-storage-before-first-unlock' 2017-01-23 20:28:53 -05:00
Michael Kirk
b5429595ac Better logging per CR
// FREEBIE
2017-01-23 18:00:34 -05:00
Michael Kirk
a45ab9fe40 We need to know if the DB password is accessible *before* we init the db
So method can't be *on* the instance.

// FREEBIE
2017-01-23 17:52:49 -05:00
Michael Kirk
dd1aa26827 Prevent destroying user database after resetting device.
// FREEBIE
2017-01-23 17:15:40 -05:00
Michael Kirk
8f81015730 Remove Cuba from domain fronting.
Google hosted domain fronting doesn't work in Cuba due to export
restrictions. OTOH there are reports of Signal working just fine without
domain fronting in Cuba.

// FREEBIE
2017-01-20 18:11:34 -05:00
Matthew Chen
45391cadd3 Merge branch 'feature/fixWebsocket2' 2017-01-17 17:44:23 -05:00
Matthew Chen
79095ecfb8 Fix web socket issue.
// FREEBIE
2017-01-17 17:43:34 -05:00
Matthew Chen
7b7b338075 Merge branch 'feature/databaseErrors' 2017-01-10 17:03:44 -05:00
Matthew Chen
c5cf79c399 Detect, warn about and try to recover from database password retrieval and database load errors.
// FREEBIE
2017-01-10 16:55:54 -05:00
Matthew Chen
87719a3bfb Merge branch 'charlesmchen/analyticsStub' 2017-01-10 16:44:23 -05:00
Matthew Chen
2a55075e6c Add stub for analytics.
// FREEBIE
2017-01-10 16:41:40 -05:00
Matthew Chen
ed98cf2627 Merge branch 'charlesmchen/iranVsDomainFronting' 2017-01-10 16:32:55 -05:00
Matthew Chen
6192351725 Remove Iran from censorship circumvention. Current approach isn't sufficient.
// FREEBIE
2017-01-10 16:32:34 -05:00
Matthew Chen
4e123e41d2 Merge branch 'charlesmchen/appVersion' 2017-01-06 13:21:41 -05:00
Matthew Chen
c22085c1ab Add class to track app version.
// FREEBIE
2017-01-06 13:21:20 -05:00
Matthew Chen
19e4b2c3a2 Revert "Remove Iran from censorship circumvention. Current approach isn't sufficient."
This reverts commit 374b45146d.
2017-01-06 13:10:18 -05:00
Matthew Chen
374b45146d Remove Iran from censorship circumvention. Current approach isn't sufficient.
// FREEBIE
2017-01-06 13:08:00 -05:00
Matthew Chen
7bee4523c0 Merge branch 'charlesmchen/assertsVsPch' 2017-01-04 17:43:02 -05:00
Matthew Chen
f470979434 Add asserts to .pch.
// FREEBIE
2017-01-04 15:15:29 -05:00
Matthew Chen
a9340b06fd Merge branch 'charlesmchen/censorship-circumvention-2' 2017-01-04 14:17:12 -05:00
Matthew Chen
5b87af9bc6 Respond to CR, fix build break.
// FREEBIE
2017-01-04 14:16:12 -05:00
Matthew Chen
c3af5bc742 Fix the UAE Google domain.
// FREEBIE
2017-01-04 14:16:06 -05:00
Matthew Chen
cc78978be5 Update fronting to use country-specific Google domains.
// FREEBIE
2017-01-04 14:16:02 -05:00
Matthew Chen
566c6e15d1 Add asserts header.
// FREEBIE
2017-01-04 14:15:56 -05:00
Matthew Chen
2438bd16c5 Add Iran, Oman, Cuba to censorship list.
// FREEBIE
2017-01-04 14:15:14 -05:00
Matthew Chen
52762a1be9 Clean up.
// FREEBIE
2017-01-04 15:22:15 +01:00
Michael Kirk
78515377b1 Censorship circumvention in Egypt and UAE
* domain fronting
* non-websocket message fetching
* alternate pinning policy for google hosted reflector server

// FREEBIE
2016-12-21 09:56:48 -06:00
Michael Kirk
b1ebfa9873 Revert "WIP: Censorship circumvention in Egypt and UAE"
This reverts commit f1ade83c3f.

No quite ready yet.
2016-12-20 17:24:50 -06:00
Michael Kirk
f1ade83c3f WIP: Censorship circumvention in Egypt and UAE
* non-websocket message fetching

// FREEBIE
2016-12-20 17:23:44 -06:00
Michael Kirk
5ccbd4ca6d Bail if we can't build a database.
* Something is irrecoverably wrong at this point.
* Constantize error names

// FREEBIE
2016-12-16 14:49:39 -06:00
Sam Vevang
f8bb46c46c check for errors in the keychain password retrieval
// FREEBIE
2016-12-16 14:32:30 -06:00
Michael Kirk
3eeb6c55d3 Use correct recipient ID when using sync message even if no contact
thread with self exists.

// FREEBIE
2016-12-16 09:55:58 -06:00
Michael Kirk
4c2a062fb4 provide custom copy for unauthorized messages
This happens when someone has registered their number on another device.

// FREEBIE
2016-12-15 22:56:38 -06:00
Michael Kirk
edebd14d42 Ignore messages with unknown Envelope.Contents
// FREEBIE
2016-12-09 08:45:20 -05:00
Michael Kirk
745a5a2769 return immutable identifiers
// FREEBIE
2016-12-03 19:33:26 -05:00
Michael Kirk
7036c63392 Compatible with libphonenumber 0.9.1
// FREEBIE
2016-12-02 19:13:34 -05:00
Russ Shanahan
7125028159 Rename an OWSContactsManager method
From nameStringForPhoneIdentifier
  To displayNameForPhoneIdentifier

* Add nullability descriptions

* Fix the mock object to adhere to new nullability rules

// FREEBIE
2016-12-02 18:48:29 -05:00
Russ Shanahan
34ffce89f5 Only calculate fullName once, & sortable fullnames (#67)
1. Adds caching of the calculated fullName value
   (which will slightly improve performance)
2. Incorporates fullNames that respect the first-name-first
   rules of the currently unmerged PR #22
3. Adds two new fullName properties that can be used
   for sorting comparators
4. Move the comparator into the model object for easy testing

Includes tests to ensure that the first name first and last name
first sorts are behaving as expected.

// FREEBIE
2016-11-29 10:02:46 -05:00
Michael Kirk
3083e2929c OWSContact from CNContact
Used in new contact picker for the Signal invite flow 

* populate emails
* nullability annotations

// FREEBIE
2016-11-26 12:29:02 -05:00
Michael Kirk
df756423f2 Ignore unknown group messages
otherwise when (e.g.) android adds a new group type they'll be shown as
empty bubbles.

// FREEBIE
2016-11-22 12:14:39 -05:00
Michael Kirk
1ba082356a Explicitly include newlines in numeric fingerprint
More straight forward than fudging / verifying different layout widths.

// FREEBIE
2016-11-14 17:38:26 -05:00
Michael Kirk
e53422f765 Configurable safety number blocking enabled by default
// FREEBIE
2016-11-14 14:15:43 -05:00
Michael Kirk
60a39f93c6 Remove phone numbers from scannable QR Code
Initially they were there to offer richer error messages when the wrong
code was scanned.

However, we found that people were posting them publicly,
misunderstanding the QR codes to be a kind of personal identifier.

For one, this isn't useful because the QR codes, like safety numbers,
are unique *per* conversation. So they aren't useful in a generic sense.
And secondly this is bad because the QR code contains both parties phone
numbers.

// FREEBIE
2016-11-14 08:43:24 -05:00
Michael Kirk
70e536ca8f Privacy preferences for blocking identity change
// FREEBIE
2016-11-10 16:28:36 -05:00
Michael Kirk
725153307e Add some nullability annotations (#62)
* fix compiler warnings about info message initializers

// FREEBIE
2016-11-10 15:21:56 -05:00