Commit Graph

55 Commits

Author SHA1 Message Date
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
Matthew Chen
579e88bdc2 Improve nullability handling for SignalAccount. 2018-08-01 09:22:56 -04:00
Matthew Chen
fa8a07abf1 Respond to CR. 2018-07-26 10:54:45 -04:00
Matthew Chen
f795b12a86 Refine theme. 2018-07-26 09:42:48 -04:00
Matthew Chen
f516f30c26 Auto-dismiss search keyboard; "cancel search" button. 2018-06-21 16:12:28 -04:00
Matthew Chen
1acf51ea5c Unify the cell and avatar sizes. 2018-06-15 11:08:01 -04:00
Matthew Chen
c1e1a52695 Auto-size contact cells everywhere. 2018-06-15 10:01:16 -04:00
Matthew Chen
2db4c96a1c Respond to CR. 2018-06-13 15:26:20 -04:00
Matthew Chen
3c50269dbf Debounce search result updates. 2018-06-13 15:26:20 -04:00
Matthew Chen
91cc902b1d Update search results. 2018-06-13 15:26:20 -04:00
Matthew Chen
44b23d44fd Respond to CR. 2018-06-13 12:40:34 -04:00
Matthew Chen
99677899b1 Respond to CR. 2018-06-13 12:37:34 -04:00
Matthew Chen
f0c1805de9 Strip snippet formatting. 2018-06-13 12:34:24 -04:00
Matthew Chen
f4a559156c Style the search results. 2018-06-13 12:34:24 -04:00
Matthew Chen
a4aba325d8 Order the search results. 2018-06-13 11:03:52 -04:00
Matthew Chen
4abd3f58cd Order the search results. 2018-06-13 11:03:52 -04:00
Matthew Chen
27b6a5e5bb Open message search results. 2018-06-12 12:44:32 -04:00
Michael Kirk
549342c702 Show empty results text
// FREEBIE
2018-06-11 16:42:25 -04:00
Michael Kirk
ecdaad06ff Handle no results
In line with other messaging apps, we intentionally don't show a "No Results"
cell. We simply don't display any cells. Though we could easily modify this in
the future.

// FREEBIE
2018-06-11 16:42:25 -04:00
Michael Kirk
fff8474150 adapt to rebase conflicts 2018-06-11 13:52:59 -04:00
Michael Kirk
f415827da6 Contact search results
// FREEBIE
2018-06-11 13:51:29 -04:00
Matthew Chen
6b49bb5e19 Open search results. 2018-06-11 12:15:46 -04:00
Michael Kirk
6924045d6b CR: rename Chat -> Conversation for consistency
// FREEBIE
2018-06-11 11:09:53 -04:00
Michael Kirk
b3705196b3 remove unused code/comments 2018-06-11 10:14:48 -04:00
Michael Kirk
0f7dcccd59 Use search results controller
// FREEBIE
2018-06-11 10:07:41 -04:00
Michael Kirk
21788f5f93 Avatar, label fonts, resignFirstResponder on scroll
-[] Backend
  -[] indexes e5.25
    -[x] wire up results: Contacts / Conversations / Messages actual: 3hr
    -[x] group thread est: actual:
      -[x] group name actual: e.25
      -[x] group member name: e.25
      -[x] group member number: e.25
    -[ ] contact thread e.5
      -[ ] name
      -[ ] number
    -[x] messages e1
      -[x] content
-[] Frontend e10.75
  -[x] wire up VC's a.5
  -[x] show search results only when search box has content a.25
  -[] show search results: Contact / Conversation / Messages e2
   -[x] wire up matchs
   -[] style contact cell
   -[] style conversation cell
   -[] style messages cell
  -[] tapping thread search result takes you to conversation e1
  -[] tapping message search result takes you to message e1
  -[x] show snippet text for matched message e1
  -[] highlight matched text in thread e3
  -[] No Results page
2018-06-11 09:58:36 -04:00