@ -223,12 +223,7 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate, S
Logger . info ( " Presenting initial root view controller " )
if TSAccountManager . isRegistered ( ) {
// H o m e V i e w C o n t r o l l e r * h o m e V i e w = [ H o m e V i e w C o n t r o l l e r n e w ] ;
// S i g n a l s N a v i g a t i o n C o n t r o l l e r * n a v i g a t i o n C o n t r o l l e r =
// [ [ S i g n a l s N a v i g a t i o n C o n t r o l l e r a l l o c ] i n i t W i t h R o o t V i e w C o n t r o l l e r : h o m e V i e w ] ;
// s e l f . w i n d o w . r o o t V i e w C o n t r o l l e r = n a v i g a t i o n C o n t r o l l e r ;
presentConversationPicker ( )
showConversationPicker ( )
} else {
showNotRegisteredView ( )
}
@ -353,12 +348,12 @@ public class ShareViewController: UINavigationController, SAELoadViewDelegate, S
// MARK: H e l p e r s
private func present ConversationPicker( ) {
private func show ConversationPicker( ) {
let conversationPicker = SendExternalFileViewController ( )
buildAttachment ( ) . then { attachment -> Void in
conversationPicker . attachment = attachment
self . pushViewController( conversationPicker , animated : true )
Logger . info ( " presented conversation picker with attachment: \( attachment ) " )
self . setViewControllers( [ conversationPicker ] , animated : true )
Logger . info ( " showing picker with attachment: \( attachment ) " )
} . catch { error in
OWSAlerts . showAlert ( withTitle : NSLocalizedString ( " SHARE_EXTENSION_UNABLE_TO_BUILD_ATTACHMENT_ALERT_TITLE " , comment : " Shown when trying to share content to a Signal user for the share extension. Followed by failure details. " ) ,
message : error . localizedDescription ,