Signal-iOS/Signal
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
..
AudioFiles Don't use CallKit for video calls received while the app is active 2020-08-17 15:41:10 -07:00
Images.xcassets Remove PayPal donation confirmation screen 2022-12-13 11:14:09 -06:00
Lottie Updated animation for + attachment button in chat input panel. 2022-11-10 23:09:26 -08:00
NSE-Images.xcassets Cache built avatars to disk for NSE 2022-02-14 11:59:13 -08:00
Settings.bundle Update SSZipArchive to 2.5.2 2022-11-01 16:23:22 -05:00
Sounds Autoplay subsequent audio messages 2021-04-29 18:01:21 -07:00
src Refactor contact access code 2023-01-12 09:55:30 -08:00
test Update gift badge copy on badge expiration sheet 2023-01-11 09:44:59 -06:00
translations Refactor contact access code 2023-01-12 09:55:30 -08:00
.swiftlint.yml
iTunesArtwork@3x.png
main.m Change license to AGPL 2022-10-13 08:25:37 -05:00
Signal-AppStore.entitlements Use a custom scheme to complete the PayPal auth flow 2022-12-06 13:41:24 -08:00
Signal-Info.plist "Bump build to 6.9.0.0." (nightly-01-11-2023) 2023-01-11 18:15:28 -08:00
Signal-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
Signal.entitlements Use a custom scheme to complete the PayPal auth flow 2022-12-06 13:41:24 -08:00
SignalTSan.supp
SignalUBSan.supp