Fix broken shortcuts

This commit is contained in:
Shadowfacts 2019-07-29 12:15:33 -04:00
parent 917771a79a
commit 83d5731f3a
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class UserActivityManager {
static func handleNewPost(activity: NSUserActivity) {
// TODO: check not currently showing compose screen
let mentioning = activity.userInfo?["mentioning"] as? String
present(ComposeViewController(mentioningAcct: mentioning))
present(UINavigationController(rootViewController: ComposeViewController(mentioningAcct: mentioning)))
}
// MARK: - Check Notifications
@ -49,7 +49,7 @@ class UserActivityManager {
static func handleCheckNotifications(activity: NSUserActivity) {
let tabBarController = UIApplication.shared.keyWindow!.rootViewController! as! UITabBarController
tabBarController.selectedIndex = 2
tabBarController.selectedIndex = 1
}
}