Commit Graph

2445 Commits

Author SHA1 Message Date
Nora Trapp
b03fac8bba Add support for phone number + UUID to SignalAccount 2019-06-25 10:29:55 -07:00
Matthew Chen
2beb816314 First of many fixes for attachment sending. 2019-06-24 16:02:18 -04:00
Matthew Chen
3c112b7da5 Respond to CR. 2019-06-24 15:52:26 -04:00
Matthew Chen
85af6572e3 Convert attachments to be any-only - code generated changes. 2019-06-24 15:34:02 -04:00
Matthew Chen
e26a8e1bd4 Convert attachments to be any-only. 2019-06-24 15:34:02 -04:00
Matthew Chen
ff38ae1920 Respond to CR. 2019-06-24 15:29:43 -04:00
Matthew Chen
3f2a680b70 Add will/did...save/remove methods to models. 2019-06-24 15:29:43 -04:00
Michael Kirk
c34b21fa6a TSAccountManager holds uuid and red test for UUID work 2019-06-24 10:19:46 -06:00
Michael Kirk
e370848f08 Integration test for message processing.
Tests from `receivedEnvelopeData`, which is called by e.g. the websocket or the
messageFetcherJob through the message processing pipeline until the UIDatabase
is notified with the new message and thread.

Includes some test helpers to initialize sessions and encrypt/decrypt messages.
2019-06-24 10:19:46 -06:00
Michael Kirk
e25024e748 add sourceUuid to protos 2019-06-24 10:06:45 -06:00
Michael Kirk
2523e8306f adapt to rename source -> sourceE164 2019-06-24 10:06:45 -06:00
Michael Kirk
dbe137fda5 rename source -> sourceE164 in proto 2019-06-24 10:06:45 -06:00
Matthew Chen
e840408807 Make isOnUIDatabaseObserverSerialQueue access thread-safe. 2019-06-24 09:56:05 -06:00
Michael Kirk
25943c515e Fix GRDB watchdog crash on SnapshotObserver updates
Our snapshot observers manage state, which must happen on our observer (serial) DispatchQueue.
Some of our snapshot observers read from the database - reading from the db must be done on the db DispatchQueue.

Even though the behavior is correct - we have the common issue of nested
DispatchQueues, wherein while on the inner one, we can no longer verify we are
still on the outer one.

So instead, we implement snapshot data mgmt using objc_sync rather than a DispatchQueue.
2019-06-24 09:55:21 -06:00
Matthew Chen
8f84b82c82 Avoid GRDB insertion errors. 2019-06-24 09:51:22 -04:00
Matthew Chen
72d9763405 Merge remote-tracking branch 'private/release/2.40.1' 2019-06-24 09:50:32 -04:00
Matthew Chen
9e838dece0 Set isBetaBuild flag. 2019-06-22 09:01:39 -04:00
Matthew Chen
4adef2e6a5 Revert "See isBetaBuild flag."
This reverts commit f93f8ff959.
2019-06-22 08:53:06 -04:00
Matthew Chen
4931ad1095 Eagerly clean up group avatar updates. 2019-06-22 08:48:00 -04:00
Michael Kirk
782cf1cb6f fix avatar downloads 2019-06-21 15:57:21 -06:00
Matthew Chen
f93f8ff959 See isBetaBuild flag. 2019-06-21 16:10:42 -04:00
Matthew Chen
781552e944 Add onlyModernNotificationClearance feature flag. 2019-06-21 16:08:08 -04:00
Matthew Chen
11b7879d78 Add onlyModernNotificationClearance feature flag. 2019-06-21 16:07:05 -04:00
Matthew Chen
d62c143a35 Apply strict ydb extension flag to ydb enumeration. 2019-06-21 11:57:21 -04:00
Matthew Chen
b15e023e49 Revert "Enable strict loading of db extensions."
This reverts commit 559522df9e.
2019-06-21 11:52:14 -04:00
Matthew Chen
0e473da157 Merge remote-tracking branch 'private/release/2.40.0' 2019-06-21 11:45:49 -04:00
Matthew Chen
00682cc64b Relax checks around corrupt db views. 2019-06-21 10:56:54 -04:00
Matthew Chen
7cf58fdc94 Respond to CR. 2019-06-21 09:16:10 -04:00
Matthew Chen
a6f5f4b35b Rename anyVisitAll() to anyEnumerate(); use stop. 2019-06-21 09:02:34 -04:00
Nora Trapp
238a102235 Fix a potential issue when disabling reg lock 2019-06-20 17:21:48 -07:00
Michael Kirk
997c69b8cc example gradual application of SignalServiceAddress 2019-06-20 18:16:42 -06:00
Michael Kirk
aac6b58d8a SignalServiceAddress 2019-06-20 18:16:42 -06:00
Nora Trapp
69a86bd969 PR Feedback 2019-06-20 10:55:23 -07:00
Nora Trapp
fbd5b980e4 PR Feedback 2019-06-20 10:55:22 -07:00
Nora Trapp
fbf369d31b Turn of registration lock v2 for now, the KBS server isn't quite ready 2019-06-20 10:55:22 -07:00
Nora Trapp
f8cd16115f Registration lock v2 migration 2019-06-20 10:55:22 -07:00
Nora Trapp
2ad2f32d89 Allow registration with v2 lock 2019-06-20 10:55:22 -07:00
Nora Trapp
627974b770 Further PR feedback 2019-06-20 10:55:22 -07:00
Nora Trapp
04f0cc5e30 PR Feedback 2019-06-20 10:55:22 -07:00
Nora Trapp
7c507e053a enclaveId -> enclaveName, verify mrenclave 2019-06-20 10:55:22 -07:00
Nora Trapp
ac9c789b80 A bit of KBS cleanup 2019-06-20 10:55:22 -07:00
Nora Trapp
0783300cb0 Backup keys after a restore to reset KBS tries 2019-06-20 10:55:22 -07:00
Nora Trapp
ccae191026 allow enabling / disabling reg lock v2 + verifying pin 2019-06-20 10:55:22 -07:00
Nora Trapp
433523a193 KeyBackupService 2019-06-20 10:55:22 -07:00
Matthew Chen
79bb6d6f94 Apply design revisions for per-message expiration. 2019-06-19 15:22:12 -04:00
Michael Kirk
e67761478c adapt to new nullability annotation 2019-06-19 10:14:05 -06:00
Michael Kirk
440f9458e2 Fix loss of precision compiler warnings 2019-06-19 10:13:22 -06:00
Matthew Chen
a0ca750f63 Respond to CR. 2019-06-19 11:53:15 -04:00
Matthew Chen
f3cbc4a91d Migrate more key-value stores. 2019-06-19 11:21:49 -04:00
Matthew Chen
b0375a5de4 Add anyCount() method to SDS extensions. 2019-06-19 11:21:41 -04:00