Add gv2 member status indicators.

This commit is contained in:
Matthew Chen 2020-04-30 10:31:42 -03:00
parent 48d4501f96
commit 46271e4247
5 changed files with 4 additions and 25 deletions

View File

@ -480,12 +480,6 @@ NS_ASSUME_NONNULL_BEGIN
return nil;
}
- (nullable NSAttributedString *)recipientPicker:(RecipientPickerViewController *)recipientPickerViewController
attributedSubtitleForRecipient:(PickedRecipient *)recipient
{
return nil;
}
- (void)recipientPickerTableViewWillBeginDragging:(RecipientPickerViewController *)recipientPickerViewController
{
[self.groupNameTextField resignFirstResponder];

View File

@ -120,11 +120,6 @@ extension AddToBlockListViewController: RecipientPickerDelegate {
return nil
}
func recipientPicker(_ recipientPickerViewController: RecipientPickerViewController,
attributedSubtitleForRecipient recipient: PickedRecipient) -> NSAttributedString? {
return nil
}
func recipientPickerTableViewWillBeginDragging(_ recipientPickerViewController: RecipientPickerViewController) {}
func recipientPickerNewGroupButtonWasPressed() {}

View File

@ -125,11 +125,6 @@ extension ComposeViewController: RecipientPickerDelegate {
return nil
}
func recipientPicker(_ recipientPickerViewController: RecipientPickerViewController,
attributedSubtitleForRecipient recipient: PickedRecipient) -> NSAttributedString? {
return nil
}
func recipientPickerTableViewWillBeginDragging(_ recipientPickerViewController: RecipientPickerViewController) {}
func recipientPickerNewGroupButtonWasPressed() {

View File

@ -30,8 +30,9 @@ protocol RecipientPickerDelegate: AnyObject {
func recipientPicker(_ recipientPickerViewController: RecipientPickerViewController,
accessoryViewForRecipient recipient: PickedRecipient) -> UIView?
func recipientPicker(_ recipientPickerViewController: RecipientPickerViewController,
attributedSubtitleForRecipient recipient: PickedRecipient) -> NSAttributedString?
@objc
optional func recipientPicker(_ recipientPickerViewController: RecipientPickerViewController,
attributedSubtitleForRecipient recipient: PickedRecipient) -> NSAttributedString?
func recipientPickerTableViewWillBeginDragging(_ recipientPickerViewController: RecipientPickerViewController)
@ -137,7 +138,7 @@ extension RecipientPickerViewController {
cell.setAccessoryMessage(accessoryMessage)
}
if let attributedSubtitle = delegate.recipientPicker(self, attributedSubtitleForRecipient: recipient) {
if let attributedSubtitle = delegate.recipientPicker?(self, attributedSubtitleForRecipient: recipient) {
cell.setAttributedSubtitle(attributedSubtitle)
}
}

View File

@ -558,12 +558,6 @@ NS_ASSUME_NONNULL_BEGIN
return nil;
}
- (nullable NSAttributedString *)recipientPicker:(RecipientPickerViewController *)recipientPickerViewController
attributedSubtitleForRecipient:(PickedRecipient *)recipient
{
return nil;
}
- (void)recipientPickerTableViewWillBeginDragging:(RecipientPickerViewController *)recipientPickerViewController
{
[self.groupNameTextField resignFirstResponder];