Commit graph

103 commits

Author SHA1 Message Date
Matthew Chen
3a12446be8 Modify environment accessors to use our 'shared' convention. 2018-09-07 16:20:41 -04: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
fac7f6932f Rename TSGroupMetaMessage enum values. 2018-09-04 09:30:01 -04:00
Matthew Chen
f473f60111 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
cc5a480baa Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
03829779cc Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
c0d486b1f1 Apply OWS log functions in Objective-C. 2018-08-27 12:58:52 -04:00
Matthew Chen
3a50377902 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
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
Matthew Chen
cb827169fb Respond to CR. 2018-08-22 16:30:12 -04:00
Michael Kirk
e435358bfd Revert "Add custom themed search bar."
This reverts commit 8daaef22da.
2018-08-22 12:00:44 -06:00
Matthew Chen
8daaef22da Add custom themed search bar. 2018-08-17 12:43:35 -04:00
Matthew Chen
4ea5d9b849 Theme review. 2018-08-16 17:30:07 -04:00
Matthew Chen
f261a47bd3 Hide home view search by default. 2018-08-16 11:42:31 -04:00
Matthew Chen
a76d488e8b Fix QA issues in theme. 2018-08-15 17:09:59 -04:00
Matthew Chen
3fc3425605 Theme search bars. 2018-08-09 14:02:29 -04:00
Matthew Chen
6dfe36f9b5 Respond to CR. 2018-08-08 15:49:22 -04:00
Michael Kirk
2ea7e2b036 CR: clean up preferences 2018-08-08 10:04:59 -06:00
Michael Kirk
ff2a5a1511 Fixup copy
// FREEBIE
2018-08-07 16:10:28 -06:00
Michael Kirk
e5b3cbd00c Use StoreKit for reviews 2018-08-07 15:56:52 -06:00
Michael Kirk
103a8dc579 ubsan fixups 2018-07-31 17:42:20 -06:00
Michael Kirk
78ad597e44 Merge tag '2.28.0.15' 2018-07-31 17:36:37 -06:00
Michael Kirk
def8b43daa iOS9/10 fixups 2018-07-31 15:14:09 -06:00
Michael Kirk
bfe1eb5503 Move reminder views into scrollable content
// FREEBIE
2018-07-31 11:41:08 -06: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
2b1f928770 Respond to CR. 2018-07-20 15:47:37 -04:00
Matthew Chen
b90e406a57 Clean up ahead of PR. 2018-07-20 15:38:37 -04:00
Matthew Chen
48975eaac8 Respond to CR. 2018-07-20 15:37:47 -04:00
Matthew Chen
8862f9a531 Refine views. 2018-07-20 15:26:46 -04:00
Óscar Morales Vivó
24f30e015a Fixed settings button margin in home view controller, also fixes land scape button image glitch. 2018-07-16 16:09:39 -06:00
Michael Kirk
c53f777bc1 CR: explanatory comment 2018-07-16 13:51:22 -06:00
Matthew Chen
f6eb8dfe72 Refine app settings view. 2018-07-13 09:28:09 -04:00
Matthew Chen
20d1d11259 Refine home view. 2018-07-13 09:28:09 -04:00
Michael Kirk
0f34f76611 Merge tag '2.27.1.1' 2018-07-03 18:19:01 -06:00
Michael Kirk
f48634701f Fixes iOS10 intermittently can't see inbox
ambiguous height of empty StackView pinned above a scrollView.
2018-07-03 17:55:13 -06:00
Matthew Chen
1412998b4a Rework isRTL. 2018-07-02 15:27:24 -04:00
Michael Kirk
5719aba91a separate icon vs. title color for toolbars 2018-06-29 17:47:04 -06:00
Michael Kirk
ee898829a1 fixup white nav 2018-06-29 16:49:24 -06:00
Michael Kirk
5d6a988955 WIP navbar 2018-06-29 15:30:24 -06:00
Michael Kirk
d9d5131e5f FIX: obscured searchbar upon returning
When navigating back from a conversation, we could be scrolled down a ways.
Since the search bar lives in the inbox table view, we need to make sure the
inbox table view is scrolled all the way up to keep the search bar visible.

// FREEBIE
2018-06-26 14:58:40 -06:00
Michael Kirk
9b43e32332 FIX: input toolbar not immediately visible when search was active
// FREEBIE
2018-06-22 13:49:36 -06:00
Michael Kirk
9f06163b76 Fix contacts reminder view
We had a guard that prevented 'called at least once' from ever getting set when contacts access was disabled.

// FREEBIE
2018-06-22 13:49:05 -06:00
Michael Kirk
66ebb7b787 Simplify show/hide with stack view
// FREEBIE
2018-06-22 13:49:05 -06:00
Matthew Chen
f516f30c26 Auto-dismiss search keyboard; "cancel search" button. 2018-06-21 16:12:28 -04:00
Matthew Chen
c96e2bb8b4 Outage detection. 2018-06-20 17:50:50 -04:00
Matthew Chen
4ac8100973 Respond to CR. 2018-06-20 15:15:33 -04:00
Matthew Chen
010c10cb0c Show re-registration in app settings. 2018-06-20 14:54:16 -04:00
Matthew Chen
bc6a4ea8d8 Add re-registration UI. 2018-06-20 14:54:16 -04:00