|
|
@ -642,8 +642,7 @@ class NotificationActionHandler {
|
|
|
|
|
|
|
|
|
|
|
|
func showThread(userInfo: [AnyHashable: Any]) throws -> Promise<Void> {
|
|
|
|
func showThread(userInfo: [AnyHashable: Any]) throws -> Promise<Void> {
|
|
|
|
guard let threadId = userInfo[AppNotificationUserInfoKey.threadId] as? String else {
|
|
|
|
guard let threadId = userInfo[AppNotificationUserInfoKey.threadId] as? String else {
|
|
|
|
return showHomePage()
|
|
|
|
return showHomeVC()
|
|
|
|
// throw NotificationError.failDebug("threadId was unexpectedly nil")
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// If this happens when the the app is not, visible we skip the animation so the thread
|
|
|
|
// If this happens when the the app is not, visible we skip the animation so the thread
|
|
|
@ -654,7 +653,7 @@ class NotificationActionHandler {
|
|
|
|
return Promise.value(())
|
|
|
|
return Promise.value(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func showHomePage() -> Promise<Void> {
|
|
|
|
func showHomeVC() -> Promise<Void> {
|
|
|
|
signalApp.showHomeView()
|
|
|
|
signalApp.showHomeView()
|
|
|
|
return Promise.value(())
|
|
|
|
return Promise.value(())
|
|
|
|
}
|
|
|
|
}
|
|
|
|