From e572abd0823b0f2b41cb7b3891815db6a3ca9300 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Mon, 31 Mar 2025 15:29:55 +1100 Subject: [PATCH] update comments --- Session/Meta/AppDelegate.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Session/Meta/AppDelegate.swift b/Session/Meta/AppDelegate.swift index 6a774eb7b..602d15abe 100644 --- a/Session/Meta/AppDelegate.swift +++ b/Session/Meta/AppDelegate.swift @@ -133,7 +133,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } ) - /// Do a little migration on an educated guess of if the user has been asked for local network permission based on calls permission + /// Adding this to prevent new users who only installed Session after this update being asked for local network access on first startup. + /// Because the only way we can check the status of local network permission will trigger the system prompt to ask for the permission. + /// It won't affect anything after the user has enabled the calls permission and gone through the permission chain after that. dependencies[defaults: .standard, key: .hasRequestedLocalNetworkPermission] = dependencies[singleton: .storage, key: .areCallsEnabled] /// Now that the theme settings have been applied we can complete the migrations