This commit is contained in:
gmbnt 2020-03-27 15:13:24 +11:00
parent c882381c9e
commit a4ce20f87e
2 changed files with 3 additions and 4 deletions

View File

@ -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:^() {

View File

@ -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(())
}