diff --git a/Signal/src/UserInterface/Notifications/AppNotifications.swift b/Signal/src/UserInterface/Notifications/AppNotifications.swift index e22aa60c4..254720bc9 100644 --- a/Signal/src/UserInterface/Notifications/AppNotifications.swift +++ b/Signal/src/UserInterface/Notifications/AppNotifications.swift @@ -642,7 +642,8 @@ class NotificationActionHandler { func showThread(userInfo: [AnyHashable: Any]) throws -> Promise { guard let threadId = userInfo[AppNotificationUserInfoKey.threadId] as? String else { - throw NotificationError.failDebug("threadId was unexpectedly nil") + return showHomePage() +// throw NotificationError.failDebug("threadId was unexpectedly nil") } // If this happens when the the app is not, visible we skip the animation so the thread @@ -652,6 +653,11 @@ class NotificationActionHandler { signalApp.presentConversationAndScrollToFirstUnreadMessage(forThreadId: threadId, animated: shouldAnimate) return Promise.value(()) } + + func showHomePage() -> Promise { + signalApp.showHomeView() + return Promise.value(()) + } private func markAsRead(thread: TSThread) -> Promise { return dbConnection.readWritePromise { transaction in