Signal-iOS/Signal/src
Max Radermacher 1311d3f665
Refactor contact access code
Split it based on whether the purpose is “editing” or “sharing”. If
we’re editing, it generally means we have full access to contacts, and
that we’ve checked which of the contacts are registered on Signal. If
we’re “sharing”, we don’t care whether or not they’re registered.

If we’re “sharing”, we check whether or not we’ve prompted for the
contacts permission yet. If not, we’ll show the prompt.

If we’re “editing”, we assume we’ve already prompted (which is already
the case today), so `.notDetermined` isn’t a possible state.

Other things to note:

- The `supportsContactEditing` was always true, so it’s been removed.

- The error when contacts access isn’t allowed is now shown more
  consistently. Previously, it was sometimes shown in response to
  initializing a view controller.

- Some RecipientPickerViewController code was moved from Obj-C to Swift.
  This is probably useful on its own, but it’ll also make it easier to
  build some new UI in subsequent commits.
2023-01-12 09:55:30 -08:00
..
Accessibility Change license to AGPL 2022-10-13 08:25:37 -05:00
Calls Group calls: handle when a ring is cancelled before the call appears 2023-01-10 17:27:29 -08:00
environment Remove support for obsolete sgnl://verify links 2022-12-06 12:41:22 -08:00
Experience Upgrades Only allow PayPal for one-time and gift donations 2022-12-01 14:39:03 -08:00
Models Swiftify OWSDeviceProvisioningURLParser 2022-12-07 10:34:58 -08:00
UserInterface Revert "Use supportedInterfaceOrientations to force calls to portrait" 2022-10-19 10:37:51 -07:00
util Fix nav bars during registration & change number 2023-01-11 09:44:46 -08:00
ViewControllers Refactor contact access code 2023-01-12 09:55:30 -08:00
views Adopt MediaGalleryCollectionViewUpdater, redux. 2023-01-04 14:26:44 -08:00
AppDelegate.h Change license to AGPL 2022-10-13 08:25:37 -05:00
AppDelegate.m Rotate APNS tokens automatically when the NSE fails to receive notifications 2022-12-19 11:10:15 -08:00
AppDelegate.swift Don’t send contact sync messages in the NSE 2022-12-19 13:32:43 -08:00
AppDelegate+Lifecycle.swift Don't owsFailDebug when app launch fails in lifecyle methods 2022-12-08 17:45:24 -06:00
AppDelegate+Orientation.swift Fix supportedInterfaceOrientationsFor 2022-12-06 15:18:07 -08:00
Signal-Bridging-Header.h Remove unused PinEntryView and a dependency 2022-12-14 15:51:15 -08:00