Commit Graph

2964 Commits

Author SHA1 Message Date
Matthew Chen
14435d91b4 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
0d1b172e81 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
bdf6874c82 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
c2ae2037d4 Fix rebase breakage. 2019-08-26 13:18:49 -03:00
Matthew Chen
a349c5a9ee Don't load YDB unless necessary. 2019-08-26 13:18:31 -03:00
Matthew Chen
79b1d31f20 Don't load YDB unless necessary.
Don't load YDB unless necessary.

Don't load YDB unless necessary.

Don't load YDB unless necessary.
2019-08-26 13:18:30 -03:00
Matthew Chen
aab82a6753 Respond to CR; add a unit test around the "special messages" finder method. 2019-08-26 12:29:43 -03:00
Matthew Chen
5f80512a9e Remove YDB usage. 2019-08-26 12:29:17 -03:00
Matthew Chen
f38e1cfe2a Remove YDB usage (generated changes). 2019-08-26 12:27:42 -03:00
Matthew Chen
203dc7272e Remove YDB usage. 2019-08-26 12:27:42 -03:00
Matthew Chen
7e22d332b1 Remove YDB usage. 2019-08-26 12:27:42 -03:00
Matthew Chen
51fbc92a3b Remove YDB usage. 2019-08-26 12:27:42 -03:00
Matthew Chen
62e4f538b0 Fix rebase breakage. 2019-08-23 15:44:20 -03:00
Matthew Chen
10eae58896 Use separate keyspec for GRDB. 2019-08-23 15:34:53 -03:00
Matthew Chen
dd770f9f2d Use separate keyspec for GRDB. 2019-08-23 15:34:53 -03:00
Matthew Chen
dee5a0727f Decompose SDSDatabaseStorage. 2019-08-23 15:32:47 -03:00
Matthew Chen
36f1c1bb02 Re-enable disabled sections of db perf tests. 2019-08-23 09:59:24 -03:00
Michael Kirk
1cc1244b83 fix release build 2019-08-22 17:05:56 -06:00
Michael Kirk
ec18ab33c0 fixup build 2019-08-22 16:58:54 -06:00
Matthew Chen
186ea2c701 Fix rebase breakage. 2019-08-22 18:32:03 -03:00
Matthew Chen
696cec6324 Simplify TSYapDatabaseObject; Prepare to remove BaseModel. 2019-08-22 18:22:40 -03:00
Matthew Chen
7e32979512 Respond to CR. 2019-08-22 17:30:11 -03:00
Matthew Chen
6d528de681 Rework OWSDisappearingMessagesFinder to support GRDB. (Generated changes) 2019-08-22 17:30:11 -03:00
Matthew Chen
549d448724 Rework OWSDisappearingMessagesFinder to support GRDB. 2019-08-22 17:30:11 -03:00
Michael Kirk
038c80f2c6 fix thread filtering 2019-08-22 11:22:03 -06:00
Michael Kirk
952fa2823f perf: Avoid repeated re-fetching of interactions
Previously:
- ConversationMapping determines which uniqueIds are in the conversation window
- ConversationViewModel fetched (and frequently refetched) interactions from those ids

Now:
- ConversationMapping determines which interactions are in the conversation window
- ConversationViewModel grabs the already fetched interactions from the conversation mapping
2019-08-22 11:22:03 -06:00
Michael Kirk
5360b2fb0f serialize even codable structs
In theory GRDB can take care of encode/decode of Codables, however the
hardcoded init(row:) entails using only things which can be
DatabaseValueConvertible, which not all Codables are.

The only field which fell afoul of this was the CGSize struct on TSAttachmentPointer.
2019-08-22 10:31:55 -06:00
Michael Kirk
032f034897 regen 2019-08-22 10:31:55 -06:00
Matthew Chen
a8f3f89ae8 Respond to CR. 2019-08-22 09:34:49 -03:00
Matthew Chen
f4b8dc06d2 Remove YDB usage. 2019-08-22 09:32:00 -03:00
Matthew Chen
08ae5c8ecc Remove YDB usage. 2019-08-22 09:32:00 -03:00
Matthew Chen
2308896631 Remove YDB usage. 2019-08-22 09:32:00 -03:00
Matthew Chen
db2dacf45f Fix more tests. 2019-08-21 15:01:13 -03:00
Michael Kirk
c18c186581 not a singleton, instantiated in migration 2019-08-21 09:13:45 -06:00
Michael Kirk
ca2c96551e Queues shouldn't start work until *did* become ready
hitting a crash while resending-messages, which involves saving messages which
explodes if the db observers haven't been setup yet, which happens in `willBecomeReady`.
2019-08-21 09:03:28 -06:00
Michael Kirk
4371c696dc Audible Debug Assertions in dev-qa builds 2019-08-21 09:01:43 -06:00
Michael Kirk
d7657b48a4 fix validation error UI 2019-08-21 08:48:47 -06:00
Matthew Chen
0f2a0d01b4 Merge remote-tracking branch 'private/release/2.42.0' 2019-08-21 10:58:41 -03:00
Matthew Chen
5c19d29140 Rework isDatabasePasswordAccessible. 2019-08-21 10:44:58 -03:00
Matthew Chen
964fbeed0b Only register YDB extensions if we're using YDB. 2019-08-21 10:41:54 -03:00
Matthew Chen
b10da5cb7f Remove OWSMessageDecryptJob table from GRDB. 2019-08-21 10:40:58 -03:00
Matthew Chen
2007d1b5de Fix more broken tests. 2019-08-21 10:38:56 -03:00
Matthew Chen
3a388d9bb3 Respond to CR. 2019-08-21 10:20:07 -03:00
Matthew Chen
aa149f6544 Fix broken tests. 2019-08-21 10:20:07 -03:00
Matthew Chen
386e443ce1 Fix more tests. 2019-08-21 10:20:07 -03:00
Michael Kirk
f2ee6976b8 disable comparison in prod 2019-08-20 17:43:39 -06:00
Michael Kirk
22ac7154dc fixup tests 2019-08-20 09:59:28 -06:00
Michael Kirk
926e76270f Merge tag '2.42.0.8' 2019-08-20 09:52:18 -06:00
Michael Kirk
dff1f40af6 Don't show "message request" for de-registered system contacts
Fixes:
Alice installs Signal
Bob sees "Alice is on Signal" notification
(everything is as expected until this point)

Alice uninstalls Signal
Bob sees message request in Alice's conversation
2019-08-19 12:46:14 -06:00
Michael Kirk
550c76769d fix mark as unregistered
because the update block gets called twice, it's not safe to pass in
a mutating reference to the method receiver.
2019-08-16 12:39:52 -06:00