|
|
@ -410,7 +410,9 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, NewConv
|
|
|
|
@objc private func openSettings() {
|
|
|
|
@objc private func openSettings() {
|
|
|
|
let settingsVC = SettingsVC()
|
|
|
|
let settingsVC = SettingsVC()
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: settingsVC)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: settingsVC)
|
|
|
|
|
|
|
|
if UIDevice.current.isIPad {
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
|
|
|
|
}
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -425,12 +427,18 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, NewConv
|
|
|
|
@objc func joinOpenGroup() {
|
|
|
|
@objc func joinOpenGroup() {
|
|
|
|
let joinOpenGroupVC = JoinOpenGroupVC()
|
|
|
|
let joinOpenGroupVC = JoinOpenGroupVC()
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: joinOpenGroupVC)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: joinOpenGroupVC)
|
|
|
|
|
|
|
|
if UIDevice.current.isIPad {
|
|
|
|
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
|
|
|
|
}
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@objc func createNewDM() {
|
|
|
|
@objc func createNewDM() {
|
|
|
|
let newDMVC = NewDMVC()
|
|
|
|
let newDMVC = NewDMVC()
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newDMVC)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newDMVC)
|
|
|
|
|
|
|
|
if UIDevice.current.isIPad {
|
|
|
|
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
|
|
|
|
}
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -438,12 +446,18 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, NewConv
|
|
|
|
func createNewDMFromDeepLink(sessionID: String) {
|
|
|
|
func createNewDMFromDeepLink(sessionID: String) {
|
|
|
|
let newDMVC = NewDMVC(sessionID: sessionID)
|
|
|
|
let newDMVC = NewDMVC(sessionID: sessionID)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newDMVC)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newDMVC)
|
|
|
|
|
|
|
|
if UIDevice.current.isIPad {
|
|
|
|
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
|
|
|
|
}
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@objc func createClosedGroup() {
|
|
|
|
@objc func createClosedGroup() {
|
|
|
|
let newClosedGroupVC = NewClosedGroupVC()
|
|
|
|
let newClosedGroupVC = NewClosedGroupVC()
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newClosedGroupVC)
|
|
|
|
let navigationController = OWSNavigationController(rootViewController: newClosedGroupVC)
|
|
|
|
|
|
|
|
if UIDevice.current.isIPad {
|
|
|
|
|
|
|
|
navigationController.modalPresentationStyle = .fullScreen
|
|
|
|
|
|
|
|
}
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
present(navigationController, animated: true, completion: nil)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|