IceCubesApp/Packages/Env/Sources/Env
Nathan Reed 8038e8e6af
Improve deep link handling on cold start (#2026)
Previously, if the app was not already running when the Safari action extension was used to open a post in the app, the post would open in the in-app Safari instead of using the Ice Cubes UI.
The action extension only worked well if Ice Cubes was already running but backgrounded when it was used.
This was because of the `hasConnection(with:)` check used to ensure that the current server has a federation relationship with the server the post is on.
Early in app launch, the list of federated peers has not come back from the API request yet, so `hasConnection(with:)` was always returning `false`.

To fix, issue a request to fetch the peers as part of the URL handling process, before checking `hasConnection(with:)` to make the final navigation decision.
As an optimization, only do this if `hasConnection(with:)` returns `false` initially -- if it returns `true`, we already know a connection exists so no need to check again.
2024-04-02 08:26:58 +02:00
..
Ext Swiftformat 2023-01-17 11:36:01 +01:00
CurrentAccount.swift Followed Tags + Lists tab. + sidebar customization 2024-01-10 13:26:55 +01:00
CurrentInstance.swift Add supports for notifications filter API 2024-03-26 15:49:43 +01:00
CustomEnvValues.swift format . 2024-02-14 12:48:14 +01:00
DeepLUserAPIHandler.swift SwiftFormat . 2023-03-19 16:28:06 +01:00
Duration.swift Swiftformat 2023-09-16 14:15:03 +02:00
HapticManager.swift format . 2024-02-14 12:48:14 +01:00
NotificationsName.swift Refactor + add more shortcuts on macOS 2023-10-26 06:23:00 +02:00
PollPreferences.swift Swiftformat 2023-09-16 14:15:03 +02:00
PreferredBrowser.swift Swiftformat 2023-01-17 11:36:01 +01:00
PreferredShareButtonBehavior.swift Swiftformat 2023-09-16 14:15:03 +02:00
PreviewEnv.swift Swiftformat . 2024-03-11 09:05:52 +01:00
PushNotificationsService.swift iOS 17+ only support + migrating to Observation framework (#1571) 2023-09-18 07:01:23 +02:00
QuickLook.swift format 2023-11-01 18:58:44 +01:00
Router.swift Improve deep link handling on cold start (#2026) 2024-04-02 08:26:58 +02:00
SoundEffectManager.swift Improve SoundEffectManager & HapticManager (#1662) 2023-11-07 11:22:36 +01:00
StatusAction.swift Change arrows icon to rocket for boosts (#1099) 2023-02-28 14:53:31 +01:00
StatusDataController.swift Make edit stickier 2024-01-01 14:13:25 +01:00
StatusEmbedCache.swift SwiftFormat 2023-03-13 13:38:28 +01:00
StreamWatcher.swift format . 2024-02-14 12:48:14 +01:00
UserPreferences.swift format . 2024-02-14 12:48:14 +01:00