Commit Graph

458 Commits

Author SHA1 Message Date
Jordan Rose
54de16338c SSK: Remove unused OWSSignalAddress 2022-01-11 10:03:48 -08:00
Matthew Chen
fae75abb39 Fix address hash continuity. 2021-12-01 10:45:10 -08:00
Matthew Chen
ff497ead1b Fix broken test. 2021-12-01 15:38:01 -03:00
Matthew Chen
23a98d724c Fix edge case in uuid<->phone number mapping changes. 2021-12-01 15:34:07 -03:00
Matthew Chen
512c403f11 Elaborate tests around address hash continuity. 2021-11-19 14:28:25 -03:00
Matthew Chen
07dc666382 Elaborate tests around address hash continuity. 2021-11-19 14:28:25 -03:00
Matthew Chen
5aa572fa50 Elaborate tests around address hash continuity. 2021-11-19 14:28:24 -03:00
Matthew Chen
22fd7cc1d1 Elaborate tests around signal service address cache. 2021-11-19 14:28:24 -03:00
Matthew Chen
39828dcdf9 Change phone number. 2021-11-19 14:28:22 -03:00
Michelle Linington
a74f22cfca Fix compilation issue in tests 2021-10-28 12:40:56 -07:00
Michelle Linington
65601d227e Fixes a couple of sender key issues:
- Failed sender key sends weren't properly retrying
- Spurious asserts when a delivery receipt for a sent message arrives
  before we finish the send
2021-10-28 12:40:56 -07:00
Matthew Chen
42c3028381 Don't cache contacts on contacts manager. 2021-10-22 19:09:45 -03:00
Matthew Chen
c494fb2a44 Don't cache contacts on contacts manager. 2021-10-22 19:09:44 -03:00
Matthew Chen
2d8dc4036c Add PhoneNumberUtilTestSwift. 2021-10-22 19:06:48 -03:00
Matthew Chen
007a00a17b Add PhoneNumberUtil singleton. 2021-10-22 19:06:15 -03:00
Matthew Chen
a0efdc2e95 Respond to CR. 2021-10-21 09:21:33 -03:00
Matthew Chen
91ad7d1df7 Respond to CR. 2021-10-21 09:21:31 -03:00
Matthew Chen
5d780d1589 Apply script to normalize includes and imports. 2021-10-21 09:21:10 -03:00
Matthew Chen
1b21755455 Simplify AFNetworking usage. 2021-10-15 10:50:37 -03:00
Matthew Chen
997f354f74 Only warn in logs when duplicate decryptions occur. 2021-09-28 17:22:17 -03:00
Matthew Chen
c01b04c3c8 Improve logging around message processing. 2021-09-28 17:22:17 -03:00
Matthew Chen
fc45ec8f63 Refine de-duplication logic. 2021-09-24 18:30:42 -03:00
Matthew Chen
ee8f3dddb8 Merge branch 'release/5.20.4' 2021-09-23 23:51:34 -03:00
Matthew Chen
ad1bdf48d6 Refine decrypt deduplication. 2021-09-23 23:16:41 -03:00
Matthew Chen
ddd7a9949a Refine decrypt deduplication. 2021-09-23 23:08:05 -03:00
Matthew Chen
59e33de962 Refine decrypt deduplication. 2021-09-23 22:49:44 -03:00
Michelle Linington
e2e48fd749 Fix test compilation 2021-09-23 09:56:03 -03:00
Michelle Linington
6cb440dc26 Fix tests 2021-09-23 09:56:02 -03:00
Michelle Linington
a9121b9ea3 Fix test compilation 2021-09-23 09:56:02 -03:00
Matthew Chen
c4777a8023 Merge branch 'release/5.20.4' 2021-09-23 00:18:58 -03:00
Matthew Chen
1b46d06336 De-duplicate by serverGuid. 2021-09-23 00:08:02 -03:00
Matthew Chen
026b02c267 Deduplication message decryption to avoid spurious errors when NSE and main app message processing race. 2021-09-23 00:08:02 -03:00
Matthew Chen
220877f287 Merge branch 'release/5.20.4' 2021-09-22 18:19:17 -03:00
Matthew Chen
8aa213d25b Deduplication message decryption to avoid spurious errors when NSE and main app message processing race. 2021-09-22 12:05:28 -07:00
Matthew Chen
4df6394564 Fix broken tests. 2021-09-20 17:51:16 -03:00
Matthew Chen
9271f83624 Remove databaseChangesWillUpdate. 2021-09-08 21:41:13 -03:00
Matthew Chen
c1a8005a74 Never emit invalid e164 in storage service contact records; be robust to invalid e164 incoming protos. 2021-09-01 16:33:16 -03:00
Michelle Linington
c7fb7b2032 Fix broken test 2021-09-01 11:42:34 -07:00
Michelle Linington
4eeb4e34be Tests should be runnable in Profiling scheme 2021-08-26 20:57:06 -07:00
Michelle Linington
8bcf7d39ff Timestamp mismatch between envelope inside and outside
On a resend response, when fetching the proto payload from the MSL, some
incorrect float math led to an off-by-one timestamp for some timestamps.

One example is the timestamp 1629210680140. When converting to a date:
1629210680140 / 1000.0 = 1629210680.1399999

Then when converting back to milliseconds:
Int(1629210680.1399999 * 1000.0) = 1629210680139

To fix this, the MSL now only operates with UInt64 millisecond
timestamps.
2021-08-19 17:01:05 -07:00
Michelle Linington
6417494bc3 Fix tests 2021-08-19 16:54:29 -07:00
Matthew Chen
4b77df38fa Refine names. 2021-08-18 15:01:04 -03:00
Matthew Chen
b28131de13 Refine error localizedDescription. 2021-08-18 15:01:03 -03:00
Matthew Chen
fb549a95ea Refine error localizedDescription. 2021-08-18 15:01:03 -03:00
Matthew Chen
e13657952b Respond to CR; fix broken tests. 2021-08-18 14:26:20 -03:00
Matthew Chen
05bf2b86b9 Clean up ahead of PR. 2021-08-18 14:25:40 -03:00
Matthew Chen
fcdca12cf5 Deprecate REST, Part 1
* Port socket manager to Swift.
* Clean up HTTP request success/failure state & errors.
* Rework network manager.
* Rework HTTP errors.
* Rework errors "properties": isRetryable, etc.
* Fix test breakage.
2021-08-18 14:25:36 -03:00
Nora Trapp
1cbe9c3ee7 PR Feedback 2021-08-16 13:28:08 -07:00
Michelle Linington
8ced863098 Fix a bug with date comparison. Added tests 2021-08-16 13:14:19 -07:00
Michelle Linington
c1f80c143d Lint 2021-08-16 13:14:19 -07:00