Commit Graph

190 Commits

Author SHA1 Message Date
Matthew Chen
54736426f9 Avoid crashes when signed prekey lookup fails.
// FREEBIE
2017-02-14 15:48:49 -05:00
Matthew Chen
93219e4d23 Merge branch 'charlesmchen/prekey_' 2017-02-10 16:13:20 -05:00
Michael Kirk
e0688e16a7 Clean up prekey logic.
// FREEBIE
2017-02-10 16:12:28 -05:00
Michael Kirk
e1949893f2 Avoid deadlock when marking self-sent messages as read.
Fetching the localNumber invokes another transaction, which can
result in deadlock if called during an existing transaction.

// FREEBIE
2017-02-08 18:34:31 -05:00
Matthew Chen
4d055757de Fix the .pch used by this pod to reflect the changes from the last PR.
// FREEBIE
2017-02-08 16:43:50 -05:00
Matthew Chen
0252797734 Merge branch 'charlesmchen/callStatusMessages' 2017-02-08 16:25:50 -05:00
Matthew Chen
284212b3fe Move OWSDispatch.h to the PCH.
// FREEBIE
2017-02-08 16:25:28 -05:00
Matthew Chen
90b85c0605 Improve the call status messages in conversation view.
// FREEBIE
2017-02-08 15:51:53 -05:00
Michael Kirk
bc1af80733 Log when we mark a message as read locally
This is in pursuit of some now (for me) un-reproducible behavior where
messages on some clients were being immediately marked as read.

// FREEBIE
2017-02-08 10:29:51 -05:00
Michael Kirk
311d80fb2e Missed calls increment unread counter/badge
This affects:
- per-thread badge in the inbox view
- app badge when viewed from springboard.

// FREEBIE
2017-02-07 17:00:55 -05:00
Matthew Chen
653727ae9f Merge branch 'charlesmchen/messagesFromMeAreAlreadyAutoRead' 2017-02-06 11:26:12 -05:00
Matthew Chen
df1b3418d2 Respond to CR.
// FREEBIE
2017-02-06 11:25:56 -05:00
Matthew Chen
6d356e4b67 Automatically mark as read any messages sent by current user from another device.
// FREEBIE
2017-02-04 13:15:15 -05:00
Michael Kirk
4e8ab21c41 Merge pull request #105 from WhisperSystems/mkirk/webrtc
Support for WebRTC calling
2017-02-02 15:18:37 -05:00
Michael Kirk
92a69e8e65 Repsond to CR w/ @cmchen.
* Added docs
* added asserts to TSEnv accessors

// FREEBIE
2017-02-02 15:15:38 -05:00
Michael Kirk
80fb58231e Merge remote-tracking branch 'origin/master' into mkirk/webrtc
// FREEBIE
2017-02-01 20:01:22 -05:00
Michael Kirk
c68073fdb1 proper error code for NOTFOUND
// FREEBIE
2017-02-01 19:18:28 -05:00
Michael Kirk
7b1b706e2a Include reusable localized text in recipient-not-found error
This way we can use it for calls as well.

// FREEBIE
2017-02-01 19:16:07 -05:00
Matthew Chen
7ca1d5e8a6 Merge branch 'charlesmchen/webrtc/threadSafety' into mkirk/webrtc 2017-02-01 10:40:59 -05:00
Matthew Chen
18e144f8bd Respond to CR.
// FREEBIE
2017-02-01 10:40:13 -05:00
Matthew Chen
ddbc4819f1 Rework concurrency in the signaling logic.
// FREEBIE
2017-02-01 10:21:50 -05:00
Michael Kirk
104645f97b Safely pass exception across dispatch bounds
// FREEBIE
2017-01-31 09:46:25 -05:00
Michael Kirk
6521a80c44 Lookup methods yield SignalRecipient (#102)
Let's us remove some otherwise redundant code to look up the recipient
from their ID.

// FREEBIE
2017-01-27 13:06:49 -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
Matthew Chen
9fdbbb7f8b Merge branch 'charlesmchen/webrtc/video2' into mkirk/webrtc 2017-01-25 11:59:40 -05:00
Matthew Chen
5da4b3d122 Add assert macro that can be used in free functions.
// FREEBIE
2017-01-25 11:59:20 -05:00
Michael Kirk
cf6f107f1e Merge remote-tracking branch 'origin/master' into mkirk/webrtc
Get session corruption fixes

// FREEBIE
2017-01-25 11:33:07 -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
f4a46fce08 Merge remote-tracking branch 'origin/master' into mkirk/webrtc 2017-01-24 17:38:29 -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
Matthew Chen
275a0dc62e Fix typo.
// FREEBIE.
2017-01-23 12:59:35 -05:00
Matthew Chen
d640a4155c Merge branch 'feature/swallowSwiftLintErrors' into mkirk/webrtc 2017-01-23 11:27:15 -05:00
Matthew Chen
65128d5f54 Swallow errors returned by swift lint.
// FREEBIE
2017-01-23 11:27:05 -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
Michael Kirk
7c62097d0c Fix up tests
// FREEBIE
2017-01-19 17:23:19 -05:00
Matthew Chen
305541d03b Merge branch 'feature/fixWebsocket2' into mkirk/webrtc 2017-01-17 18:43:43 -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
25695677d6 Merge branch 'charlesmchen/webrtcSetting2' into mkirk/webrtc 2017-01-13 15:24:31 -05:00
Matthew Chen
ffb199bcd1 Respond to CR.
// FREEBIE
2017-01-13 11:46:06 -05:00
Matthew Chen
08ba42c563 Update SignalRecipient with “is WebRTC enabled” property from service.
// FREEBIE
2017-01-13 09:43:08 -05:00
Matthew Chen
6791875ebc Merge branch 'feature/precommitClangFormatSwiftLint2' into mkirk/webrtc 2017-01-13 09:23:41 -05:00
Matthew Chen
6e9ae615ca Tweak commit script.
// FREEBIE
2017-01-12 18:17:41 -05:00
Matthew Chen
db27f22c6a Merge branch 'feature/precommitClangFormatSwiftLint' into mkirk/webrtc 2017-01-12 17:54:55 -05:00
Matthew Chen
b1c86d1a34 Modify precommit script to "swiftlint" and "git clang-format" files.
// FREEBIE
2017-01-12 16:18:01 -05:00