Commit Graph

2515 Commits

Author SHA1 Message Date
Matthew Chen
c8359fc932 Convert message sending to use any transactions. 2019-06-25 16:00:58 -04:00
Matthew Chen
c1e73b4883 Convert sticker models to any models. 2019-06-25 15:59:09 -04:00
Matthew Chen
b86ab9f611 Migrate OWSDisappearingMessagesConfiguration to any. 2019-06-25 15:48:37 -04:00
Matthew Chen
ce1058cef3 Add BaseModel. 2019-06-25 15:48:37 -04:00
Nora Trapp
a71b516a98 PR Feedback 2019-06-25 10:31:23 -07:00
Nora Trapp
34e8a7e4a0 PR Feedback 2019-06-25 10:31:23 -07:00
Nora Trapp
5e2d0fc8bd AnySignalAccountFinder 2019-06-25 10:31:23 -07:00
Nora Trapp
fd233fdb02 SignalServiceAddress can hold UUID and phone number 2019-06-25 10:30:52 -07:00
Nora Trapp
92f817d7fd Update callsites to use new contacts manager address interface 2019-06-25 10:30:52 -07:00
Nora Trapp
5f5f7c0890 Add some temporary helpers for generating an address from a phone number 2019-06-25 10:30:51 -07:00
Nora Trapp
77cd8a1936 Add UUID support to Contacts Manager 2019-06-25 10:30:51 -07:00
Nora Trapp
4e24bb4122 SignalAccount sds-codegen 2019-06-25 10:29:55 -07:00
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
Michael Kirk
a44f74a7bf fixup tests 2019-06-20 17:44:15 -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