Signal-iOS/SignalMessaging
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
..
attachments Add all JobQueues to environment, via a wrapper 2022-11-09 14:08:44 -06:00
calls Fix various bugs in OWSHttpHeaders 2022-11-22 11:43:55 -08:00
categories Use title casing in filenames 2022-11-10 19:08:44 -08:00
contacts Refactor contact access code 2023-01-12 09:55:30 -08:00
environment Convert OWSAudioPlayer to swift and lose 'OWS' prefix. 2022-12-06 16:00:58 -08:00
groups Add ContactDiscoveryManager 2022-11-15 13:37:28 -08:00
Jobs Fix bugs marking SignalRecipients as registered 2023-01-03 13:23:33 -08:00
Notifications Group calls: separate new/existing member safety number notifications 2022-11-14 10:01:04 -08:00
Payments Hide Apple Pay UI when the server disallows your region 2022-11-10 16:19:47 -06:00
profiles Drop deprecated credentials asynchronously 2022-11-15 12:49:20 -08:00
Storage Service Don’t use serviceIdentifier for Contacts 2023-01-09 12:01:34 -08:00
Subscriptions Remove SubscriptionManager.terminateTransactionIfPossible 2022-12-22 14:39:53 -08:00
test Change error string for minimum donation amount 2022-12-12 15:46:32 -06:00
utils Use new copy for in-chat gift messages 2023-01-11 14:18:48 -06:00
Info.plist Shared framework between app and extension 2017-11-29 13:58:27 -08:00
SignalMessaging-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalMessaging.h Change license to AGPL 2022-10-13 08:25:37 -05:00