Signal-iOS/SignalUI
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
..
Appearance Swiftify DomainFrontingCountryViewController 2022-12-06 12:53:45 -08:00
Categories Clean up and consolidate logic for setting textContainerInset in MentionTextView. 2022-12-16 15:48:28 -08:00
Environment Convert OWSAudioPlayer to swift and lose 'OWS' prefix. 2022-12-06 16:00:58 -08:00
Fonts Add new fonts for text stories 2022-03-17 14:30:19 -07:00
Payments add testnet enclave measurements for v3.0.0 (#5442) 2022-12-21 14:06:38 -08:00
SignalUI.docc Add SignalUI framework target. 2021-10-19 09:39:52 -03:00
UI Fix typo: "appearence" -> "appearance". 2022-11-29 22:01:42 -08:00
Utils Refactor contact access code 2023-01-12 09:55:30 -08:00
ViewControllers Refactor contact access code 2023-01-12 09:55:30 -08:00
ViewModels Use new copy for in-chat gift messages 2023-01-11 14:18:48 -06:00
Views Refactor contact access code 2023-01-12 09:55:30 -08:00
Wallpapers Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalUI-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalUI.h Convert OWSAudioPlayer to swift and lose 'OWS' prefix. 2022-12-06 16:00:58 -08:00