Commit Graph

80 Commits

Author SHA1 Message Date
Nora Trapp
91c8b4a250 Further design feedback 2021-03-04 18:32:24 -08:00
Matthew Chen
111338b59d Rewrite conversation view. 2020-12-10 12:44:13 -03:00
Matthew Chen
096ed67bb9 Convert font style convenience methods to properties. 2020-10-06 13:09:45 -03:00
Matthew Chen
66510bc18f DRY singleton accessors. 2020-09-17 21:13:14 -03:00
Matthew Chen
3cedd3ccdf Overhaul database observation. 2020-06-18 09:28:49 -03:00
Matthew Chen
993dca8ec9 Remove redundant NotificationName. 2020-01-27 10:53:23 -03:00
Matthew Chen
b2dd31eb9c Merge remote-tracking branch 'private/release/2.45.0' 2019-10-24 15:42:39 -03:00
Matthew Chen
ae769ad5bd Respond to CR. 2019-10-21 16:55:06 -03:00
Matthew Chen
e7479567a4 Improve GRDB perf for FTS searches with many results. 2019-10-21 16:50:00 -03:00
Nora Trapp
fef0a2ffbf Revert "Merge branch 'nt/ipad-split-view'"
This reverts commit 3c9a3f8f21, reversing
changes made to 9a2645497e.
2019-10-21 12:35:02 -07:00
Nora Trapp
90c562e94b Render conversation list + view in a side-by-side split on iPad 2019-10-08 20:10:01 -07:00
Michael Kirk
95f2d511e1 font updates 2019-09-26 12:20:42 -07:00
Michael Kirk
54812451f4 Update and apply palette. Consolidate dupes. 2019-09-24 15:12:51 -07:00
Matthew Chen
85756b0fe9 Merge remote-tracking branch 'private/release/2.42.0' 2019-08-16 13:21:38 -03:00
Matthew Chen
e10ffb2506 Remove asyncUIRead(). 2019-08-14 19:29:35 -03:00
Matthew Chen
8ca337e2c3 Rework generic change observation. 2019-08-13 09:58:27 -03:00
Michael Kirk
afd9d7781a Camera First flow 2019-08-02 09:26:23 -06:00
Matthew Chen
104165c5fa Clean up ahead of PR. 2019-07-23 10:46:11 -03:00
Matthew Chen
bdf5ca2645 Remove YDB connections. 2019-07-23 10:46:10 -03:00
Nora Trapp
b9bb444276 Add UUID support to groups 2019-07-10 13:27:36 -07:00
Nora Trapp
a1f85fca30 Migrate profiles to support UUIDs 2019-07-02 11:19:50 -07:00
Nora Trapp
92f817d7fd Update callsites to use new contacts manager address interface 2019-06-25 10:30:52 -07:00
Michael Kirk
326a531fc3 prevent archiving threads behind search results 2019-06-10 15:59:18 -05:00
Michael Kirk
64a0c4bfaa auto-migrate to Swift5 2019-04-04 13:44:42 -06:00
Michael Kirk
71dd4eb151 in-conversation search
- use MediaTime for computing benchmarks
2019-02-28 16:19:16 -07:00
Michael Kirk
fabd3996c2 pop view if message is deleted
- use global ui database connection
2019-02-21 16:18:14 -07:00
Michael Kirk
6e50a5353b rename for clarity 2019-01-16 17:06:37 -07:00
Matthew Chen
858e47b9b5 Remove unsightly separators from 'no search results' state. 2019-01-07 08:58:49 -05:00
Matthew Chen
25ed886e72 Update home and group cells' dependencies. 2018-10-25 09:48:58 -04:00
Matthew Chen
28f37a7a34 Update contacts cells' dependencies. 2018-10-25 09:48:57 -04:00
Michael Kirk
920a82564f Merge tag '2.29.3.3' 2018-09-15 09:17:08 -05:00
Michael Kirk
fd492f379a Use BlockListCache where possible 2018-09-12 19:16:14 -05:00
Michael Kirk
809b3766c1 Home view cell v. group blocking 2018-09-12 19:16:14 -05:00
Michael Kirk
eadb04efcc WIP: ContactViewHelper incorporates group blocking
-[ ] UI
  -[ ] Conversation Settings
    -[x] Show switch for group
    -[ ] localize
    -[ ] migrate existing localizations? (nice to have)
    -[ ] can view conversation settings (but not edit them) in left group
    -[ ] special block copy for groups
    -[ ] special unblock copy for groups
  -[ ] ConversationViewHelper
   -[x] Track blocked groups
   -[ ] HomeView
   -[ ] ConversationView
   -[ ] Any others?
   -[ ] Rename? Extract BlockList cache?
  -[ ] Block List
    -[ ] Group Section
    -[ ] Unblock group
  -[ ] Interstitial interacting with blocked threads (e.g. thread picker)
    -[ ] BlockListUIUtils w/ thread
        -[x] Block
        -[x] Unblock
        -[ ] Replace usages where possible
        -[x] block manager
-[ ] Sync
  -[x] tentative protos
  -[ ] confirm protos w/ team
  -[x] send new protos
-[ ] Message Processing
  -[ ] Drop messages from blocked groups
2018-09-12 19:16:14 -05:00
Matthew Chen
cc117b385c Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:59 -04:00
Matthew Chen
3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04:00
Matthew Chen
f9eab5cd24 Merge remote-tracking branch 'origin/release/2.29.2' 2018-09-07 15:27:50 -04:00
Matthew Chen
5b50e81b4f Rename fail macros in Swift. 2018-08-27 10:27:48 -04:00
Matthew Chen
7be8f30877 Apply -> Never. 2018-08-27 10:21:03 -04:00
Matthew Chen
cf6f3841a8 Apply new Swift logging. 2018-08-27 10:02:28 -04:00
Michael Kirk
7e8b2e3034 Faster conversation presentation.
There are multiple places in the codebase we present a conversation.

We used to have some very conservative machinery around how this was done, for
fear of failing to present the call view controller, which would have left a
hidden call in the background. We've since addressed that concern more
thoroughly via the separate calling UIWindow.

As such, the remaining presentation machinery is overly complex and inflexible
for what we need.

Sometimes we want to animate-push the conversation. (tap on home, tap on "send message" in contact card/group members)
Sometimes we want to dismiss a modal, to reveal the conversation behind it (contact picker, group creation)
Sometimes we want to present the conversation with no animation (becoming active from a notification)

We also want to ensure that we're never pushing more than one conversation view
controller, which was previously a problem since we were "pushing" a newly
constructed VC in response to these myriad actions. It turned out there were
certain code paths that caused multiple actions to be fired in rapid succession
which pushed multiple ConversationVC's.

The built-in method: `setViewControllers:animated` easily ensures we only have
one ConversationVC on the stack, while being composable enough to faciliate the
various more efficient animations we desire.

The only thing lost with the complex methods is that the naive
`presentViewController:` can fail, e.g. if another view is already presented.
E.g. if an alert appears *just* before the user taps compose, the contact
picker will fail to present.

Since we no longer depend on this for presenting the CallViewController, this
isn't catostrophic, and in fact, arguable preferable, since we want the user to
read and dismiss any alert explicitly.

// FREEBIE
2018-08-24 08:54:23 -06:00
Michael Kirk
82e559d11b Use swift macros for main thread assert 2018-08-23 10:29:49 -06:00
Michael Kirk
781c535327 weak capture self 2018-08-23 10:18:23 -06:00
Michael Kirk
fc7dc03cee don't block main thread during search
// FREEBIE
2018-08-23 10:18:23 -06:00
Matthew Chen
cb827169fb Respond to CR. 2018-08-22 16:30:12 -04:00
Michael Kirk
e4b7d253a3 Theme "no results" cell 2018-08-22 12:24:21 -06:00
Matthew Chen
decb0c54ca Theme review. 2018-08-16 17:30:08 -04:00
Matthew Chen
4ea5d9b849 Theme review. 2018-08-16 17:30:07 -04:00
Matthew Chen
26001e49d1 Unify log tags. 2018-08-15 10:24:29 -04:00
Matthew Chen
4f8dbf39b5 Refine theme. 2018-08-08 15:04:23 -04:00