session-ios/Signal/src/ViewControllers/ThreadSettings
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
..
AddToGroupViewController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
AddToGroupViewController.m Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
FingerprintViewController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
FingerprintViewController.m Refine theme. 2018-08-08 15:04:23 -04:00
FingerprintViewScanController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
FingerprintViewScanController.m Refine theme. 2018-08-08 15:04:23 -04:00
OWSAddToContactViewController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
OWSAddToContactViewController.m remove appearance juggling 2018-06-29 16:27:37 -06:00
OWSConversationSettingsViewController.h Access Media Gallery from conversation settings 2018-03-19 14:22:03 -04:00
OWSConversationSettingsViewController.m Log in OWSFail 2018-08-09 15:30:19 -06:00
OWSConversationSettingsViewDelegate.h conversation colors 2018-06-29 11:52:41 -06:00
ShowGroupMembersViewController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
ShowGroupMembersViewController.m Faster conversation presentation. 2018-08-24 08:54:23 -06:00
UpdateGroupViewController.h Sketch out incremental backup manager and settings view. 2018-03-12 16:40:07 -03:00
UpdateGroupViewController.m Fix QA issues in theme. 2018-08-15 17:09:59 -04:00