Skip to content
Snippets Groups Projects
Commit 21d1fe0a authored by Bruno Muniz's avatar Bruno Muniz :apple:
Browse files

Working on deeplinking into search

parent a076b6fe
No related branches found
No related tags found
3 merge requests!71Releasing v1.1.5 (214),!67v1.1.5 b(203),!59Invite friends
......@@ -24,6 +24,7 @@ public class AppDelegate: UIResponder, UIApplicationDelegate {
@KeyObject(.recordingLogs, defaultValue: true) var recordingLogs: Bool
@KeyObject(.crashReporting, defaultValue: true) var isCrashReportingEnabled: Bool
var invitation: String?
var calledStopNetwork = false
var forceFailedPendingMessages = false
......@@ -133,6 +134,12 @@ public class AppDelegate: UIResponder, UIApplicationDelegate {
}
public func applicationDidBecomeActive(_ application: UIApplication) {
// TODO:
/// If an invitation is set -> navigate to
/// search screen and perform a search
///
invitation = nil
application.applicationIconBadgeNumber = 0
coverView?.removeFromSuperview()
}
......@@ -142,7 +149,12 @@ public class AppDelegate: UIResponder, UIApplicationDelegate {
open url: URL,
options: [UIApplication.OpenURLOptionsKey : Any] = [:]
) -> Bool {
dropboxService.handleOpenUrl(url)
if let host = url.host, host.starts(with: "invitation-") {
invitation = host.replacingOccurrences(of: "invitation-", with: "")
return true
}
return dropboxService.handleOpenUrl(url)
}
}
......
......@@ -5,7 +5,6 @@ import Combine
import PushFeature
import DependencyInjection
public final class LaunchController: UIViewController {
@Dependency private var hud: HUD
@Dependency private var coordinator: LaunchCoordinating
......
......@@ -403,7 +403,6 @@ final class SearchLeftController: UIViewController {
coordinator.toDrawer(drawer, from: self)
}
}
extension SearchLeftController: UITableViewDelegate {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment