pull/147/head
gmbnt 5 years ago
parent c882381c9e
commit a4ce20f87e

@ -1559,7 +1559,7 @@ static BOOL isUsingFullAPNs = YES;
{ {
OWSLogInfo(@""); OWSLogInfo(@"");
if (notification.request.content.userInfo[@"remote"]) { 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; return;
} }
[AppReadiness runNowOrWhenAppDidBecomeReady:^() { [AppReadiness runNowOrWhenAppDidBecomeReady:^() {

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

Loading…
Cancel
Save