Signal-iOS/SignalUI
Evan Hahn 02494b048a
Hide left groups from various pickers
If you've left a group, we shouldn't show it in any pickers except the
blocking manager (`AddToBlockListViewController`). Before this commit,
we were showing it in a few places. That might let you sorta-send a
message to a group you'd left.

I enumerated all the places where we have pickers, and what their
behavior should be.

| Description                                                           | Code                                        | Show groups?             | Show left groups?        |
| --------------------------------------------------------------------- | ------------------------------------------- | ------------------------ | ------------------------ |
| Various group member pickers (adding members, group story recipients) | `BaseMemberViewController`                  | No                       | N/A                      |
| Send payment screen                                                   | `PaymentsSendRecipientViewController`       | No                       | N/A                      |
| Gift badging “choose recipient” screen                                | `BadgeGiftingChooseRecipientViewController` | No                       | N/A                      |
| Composer                                                              | `ComposeViewController`                     | Yes, only when searching | No                       |
| Add to block list (in Settings → Privacy)                             | `AddToBlockListViewController`              | Yes, only when searching | Yes, only when searching |
| Share sheet                                                           | `SharingThreadPickerViewController`         | Yes                      | No                       |
| Message forwarding                                                    | `ForwardMessageViewController`              | Yes                      | No                       |
| In-app camera                                                         | `CameraFirstCaptureSendFlow`                | Yes                      | No                       |
| Share group link via Signal                                           | `GroupLinkViewController`                   | Yes                      | No                       |
| Share sticker pack, from in a chat                                    | `StickerPackViewController`                 | Yes                      | No                       |
| Share sticker pack, from sticker management screen                    | `ManageStickersViewController`              | Yes                      | No                       |
| “New Group Story” screen                                              | `NewGroupStoryViewController`               | Yes (exclusively)        | No                       |

This doesn't intend to change the behavior of *deleted* groups. Those
will show up when searching if groups are shown at all. For example, a
deleted group will show in the composer if you search for it just like
any other group. A deleted group will *not* show in the "send payment"
screen because groups are never shown there. Again, the behavior around
deleted groups should remain unchanged.

Co-authored-by: Max Radermacher <max@signal.org>
2022-09-20 14:36:36 +00:00
..
Appearance Add story info sheet 2022-09-12 10:36:15 -07:00
Categories Update conversation split view styling 2022-09-12 10:48:28 -07:00
Environment Report HTTP status code when web sockets fail to connect 2022-03-28 15:25:37 -07:00
Fonts Add new fonts for text stories 2022-03-17 14:30:19 -07:00
Payments [Payments] Update the MobileCoin dependency to the latest 1.2.2 release 2022-08-22 13:08:40 -07:00
SignalUI.docc Add SignalUI framework target. 2021-10-19 09:39:52 -03:00
UI Add context menu to story viewer 2022-09-07 18:13:00 -07:00
Utils Segment story videos longer than 30s 2022-09-16 15:29:44 -07:00
ViewControllers Hide left groups from various pickers 2022-09-20 14:36:36 +00:00
ViewModels Don't show story ring on note-to-self 2022-09-12 11:23:23 -07:00
Views Compensate for extra status bar height on iPhone 14 pro devices 2022-09-19 15:46:17 -07:00
Wallpapers Fix typo: "Gausian" -> "Gaussian". 2022-05-17 19:25:30 -07:00
SignalUI-Prefix.pch minor changes due to changed name of NSLocalizedStringFromAppBundle (now OWSLocalizedString) and new location of swift function and preprocessor definition 2022-03-11 14:08:26 +01:00
SignalUI.h "Add to Another Group": show archived groups, order by recency 2022-09-01 08:41:42 -05:00