Commit Graph

74 Commits

Author SHA1 Message Date
Nora Trapp
3698125424 Track reaction read state 2020-04-20 10:25:31 -07:00
Matthew Chen
c6ed1976a1 Avoid duplicate sort ids in migrated interactions. 2019-11-15 13:31:25 -03:00
Matthew Chen
401288ebba Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:19:11 -03:00
Matthew Chen
571caaae1f Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:17:54 -03:00
Matthew Chen
2e4b697499 Avoid duplicate sort ids in migrated interactions. 2019-11-15 12:17:32 -03:00
Matthew Chen
005e4d3e13 Avoid duplicate sort ids in migrated interactions. 2019-11-15 11:45:55 -03:00
Matthew Chen
91dab4e9cd Respond to CR. 2019-10-11 09:31:35 -03:00
Matthew Chen
d8f99ab026 Merge remote-tracking branch 'private/release/2.44.0' 2019-09-27 17:10:34 -03:00
Matthew Chen
a66f925039 Remove stale "YDB database failover" logic. 2019-09-27 17:09:22 -03:00
Matthew Chen
710cf0b854 Small changes. 2019-09-27 16:45:56 -03:00
Matthew Chen
e28225671d Small changes. 2019-09-27 16:45:56 -03:00
Matthew Chen
203dc7272e Remove YDB usage. 2019-08-26 12:27:42 -03:00
Matthew Chen
eccfad0f46 Merge remote-tracking branch 'private/release/2.41.0' 2019-08-06 12:12:39 -03:00
Matthew Chen
4f03f969fc Rework "view once" messages. 2019-08-01 16:13:37 -03:00
Matthew Chen
7f269ed905 Remove YDB connections. 2019-07-24 17:29:02 -03:00
Matthew Chen
8df19c2ed6 Ensure thread finder only deals with visible threads. 2019-07-24 12:34:37 -03:00
Matthew Chen
8bd8cd89df Purify threads of YDB usage. 2019-07-16 13:50:49 -03:00
Michael Kirk
6e51243e01 Attachment restore uses AnyTransaction 2019-07-02 11:47:46 -07:00
Matthew Chen
92b53cae78 Auto-expiration of messages with per-message expiration. 2019-06-14 10:41:15 -04:00
Matthew Chen
f5cf6e9c90 Elaborate per-message expiration. 2019-06-10 11:41:39 -04:00
Matthew Chen
2d9ff6b107 Elaborate per-message expiration. 2019-06-10 11:41:39 -04:00
Matthew Chen
95dcab150c Elaborate per-message expiration. 2019-06-10 11:41:39 -04:00
Michael Kirk
a344a0a2ca Fix crash with old empty threads creationDate is nullable
creationDate didn't always exist - we added it and did not backfill it. We
could backfill with a made up date, e.g. [NSDate
dateWithTimeIntervalSince1970:0], but I'm wary of putting surprising bogus data
in the db. Instead I've using an old date during sorting where it's not
surprising.
2019-05-24 15:21:13 -04:00
Matthew Chen
a81acfa788 Apply asAnyRead/Write convenience methods. 2019-04-30 10:11:19 -04:00
Michael Kirk
baef0815b1 GRDB: info message text for interation previews 2019-04-17 15:43:40 -06:00
Matthew Chen
a7d848ef7c Add missing nullability annotations. 2019-01-23 13:12:43 -05:00
Matthew Chen
1934b5d589 Tweak unseen database view accessor. 2019-01-07 08:48:52 -05:00
Michael Kirk
e0c9b590c0 CR: fix comment typo 2018-12-19 15:16:36 -07:00
Michael Kirk
5671fd2520 Revert "Revert 'new sort id'."
This reverts commit ebae75af00.
2018-12-19 15:16:36 -07:00
Michael Kirk
beb02afce9 Soft delete group threads 2018-12-12 08:46:15 -07:00
Michael Kirk
c0cb7df10a rename hasEverHadMessage -> shouldThreadBeVisible 2018-12-12 08:46:15 -07:00
Matthew Chen
90e7df5515 Use attachment pointers to restore attachments from backup. 2018-11-21 08:53:15 -08:00
Matthew Chen
ebae75af00 Revert 'new sort id'. 2018-09-27 19:40:51 -04:00
Michael Kirk
fe7d69e9c6 Update thread's sorting order based on whatever the currently last message is 2018-09-26 09:52:34 -06:00
Michael Kirk
b281b37637 replace thread.lastMessageDate/archivalDate -> thread.lastSortId, thread.archivedAsOfSortId
Update migration accordingly

Date shown on home view cell is message.receivedAt
2018-09-26 09:52:34 -06:00
Michael Kirk
089c4f09ea bump all views which rely on message sorting 2018-09-26 09:52:33 -06:00
Michael Kirk
ab55e85304 step 1: timestampForSorting audit, change signature
No change in functionality in this commit, I just broke the signature to have a
systematic audit of the callsites. Added TODO's with the plan for each call.
2018-09-26 09:52:33 -06:00
Michael Kirk
a60d8eb161 WIP: migration / autoincrement logic
TODO:

-[ ] contact offer
-[ ] verify all paths that utilized timestampForSorting, e.g. make sure SN appear before the message they affect, etc.
-[x] Monotonic ID
-[x] New extension which sorts by id
-[x] Migration
  -[ ] batch migration?
2018-09-26 09:52:33 -06:00
Michael Kirk
c7662b5a86 Step 2/2 %s/OWSAssert/OWSAssertDebug for existing previous assert semantics
Going forward, we want to prefer safer asserts, but we don't want to blindly
apply crashing asserts across the codebase
2018-09-07 10:00:48 -06:00
Matthew Chen
cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
713606271c Rename fail macros in Obj-C. 2018-08-27 10:29:51 -04:00
Michael Kirk
c05700fd98 Log in OWSFail
step 1: rename OWSFail->OWSFailNoProdLog
step 2: rename OWSProdLogAndFail->OWSFail
step 3: Convert OWSFailNoProdLog->OWSFail where we want logging
step 4: Rename OWSCFail->OWSCFailNoProdLog
step 5: Rename OWSProdLogAndCFail -> OWSCFail
step 6: Convert OWSCFailNoProdLog -> OWSCFail where we want logging
2018-08-09 15:30:19 -06:00
Michael Kirk
1eb7fc986c YapDB introduced a method purpose built to do what we were approximating.
This seems a little more future proof / less error prone if we change the
registered extensions.
2018-08-03 14:09:35 -06:00
Matthew Chen
4abaed0e6d Tidy up type checking in database views. 2018-06-20 17:09:14 -04:00
Matthew Chen
35ee8c1a0d Rework flush of registration connection(s). 2018-04-18 17:38:13 -04:00
Matthew Chen
4915c127cb Rework quoted reply debug UI. 2018-04-02 16:17:46 -04:00
Matthew Chen
4602ad9014 Respond to CR. 2018-04-02 09:39:13 -04:00
Matthew Chen
1dced463cb Lazy restore attachments. 2018-04-02 09:28:12 -04:00
Matthew Chen
61dc2c0249 Add local cache of backup fragment metadata. 2018-04-02 09:27:34 -04:00
Matthew Chen
e88f5643f7 Add local cache of backup fragment metadata. 2018-04-02 09:27:34 -04:00