Commit Graph

2539 Commits

Author SHA1 Message Date
Nora Trapp
52545fa0c4 Add shared YAP extension for SignalServiceAddress lookup 2019-06-27 13:13:52 -07:00
Nora Trapp
7d94af3287 Migrate TSContactThread to support UUIDs 2019-06-27 13:12:52 -07:00
Michael Kirk
793e2854a7 fixup tests 2019-06-27 10:21:41 -06:00
Michael Kirk
d30ad6d1e4 fix overzealous assert in tests 2019-06-27 10:13:55 -06:00
Michael Kirk
677926b673 work around other work around 2019-06-27 10:13:55 -06:00
Michael Kirk
0907a2257f Convert Recipient and SessionStore to SignalServiceAddress 2019-06-26 17:48:16 -06:00
Michael Kirk
9da5f5fa09 codegen 2019-06-26 17:48:16 -06:00
Michael Kirk
09d75ee2d5 fixup address comparison with nil uuid 2019-06-26 14:57:12 -06:00
Michael Kirk
f8f9bce259 fix UUID getter on TSAccountManager 2019-06-26 14:11:12 -06:00
Michael Kirk
aff9b22228 This method is no longer available. Since we clear our db between tests, it's no longer necessary. 2019-06-26 15:23:16 -04:00
Michael Kirk
647b8a0512 no need to ignore computed property which no longer exists 2019-06-26 10:43:27 -06:00
Matthew Chen
43f554feee Fix anyCanBeSaved property. 2019-06-26 10:42:24 -06:00
Matthew Chen
66b4d25a3a Respond to CR. 2019-06-26 10:29:06 -04:00
Matthew Chen
4709fa8a76 Convert OWSRecipientIdentity to extend BaseModel. 2019-06-26 10:18:08 -04:00
Matthew Chen
090630ab4d Convert OWSUnknownDBObject to extend BaseModel. 2019-06-26 10:18:08 -04:00
Matthew Chen
ba928eb7cd Convert ExperienceUpgrade to extend BaseModel. 2019-06-26 10:18:08 -04:00
Matthew Chen
f6da9c9879 Convert TSRecipientReadReceipt to extend BaseModel. 2019-06-26 10:07:39 -04:00
Matthew Chen
75e72e4901 Convert OWSLinkedDeviceReadReceipt to extend BaseModel. 2019-06-26 10:07:39 -04:00
Matthew Chen
c7c6a182ab Convert SignalAccount to extend BaseModel. 2019-06-26 10:07:39 -04:00
Matthew Chen
a599a9b6a4 Respond to CR. 2019-06-26 10:05:51 -04:00
Matthew Chen
dfb4bb3972 Fix issues in grdb migration work. 2019-06-25 16:24:27 -04:00
Matthew Chen
7053b86f08 Respond to CR. 2019-06-25 16:00:58 -04:00
Matthew Chen
8294077b34 Add "anyCanBeSaved" flag. 2019-06-25 16:00:58 -04:00
Matthew Chen
aadb418cd9 Convert message sending to use any transactions (code generated changes). 2019-06-25 16:00:58 -04:00
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