Clean
This commit is contained in:
parent
c882381c9e
commit
a4ce20f87e
|
@ -1559,7 +1559,7 @@ static BOOL isUsingFullAPNs = YES;
|
|||
{
|
||||
OWSLogInfo(@"");
|
||||
if (notification.request.content.userInfo[@"remote"]) {
|
||||
OWSLogInfo(@"[Loki] Ignore remote notifications when app is foreground.");
|
||||
OWSLogInfo(@"[Loki] Ignoring remote notifications while the app is in the foreground.");
|
||||
return;
|
||||
}
|
||||
[AppReadiness runNowOrWhenAppDidBecomeReady:^() {
|
||||
|
|
|
@ -642,8 +642,7 @@ class NotificationActionHandler {
|
|||
|
||||
func showThread(userInfo: [AnyHashable: Any]) throws -> Promise<Void> {
|
||||
guard let threadId = userInfo[AppNotificationUserInfoKey.threadId] as? String else {
|
||||
return showHomePage()
|
||||
// throw NotificationError.failDebug("threadId was unexpectedly nil")
|
||||
return showHomeVC()
|
||||
}
|
||||
|
||||
// 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(())
|
||||
}
|
||||
|
||||
func showHomePage() -> Promise<Void> {
|
||||
func showHomeVC() -> Promise<Void> {
|
||||
signalApp.showHomeView()
|
||||
return Promise.value(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue