clarify naming

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 69aeb041ba
commit 609746abec

@ -70,7 +70,7 @@ public class ContactShareViewHelper: NSObject, CNContactViewControllerDelegate {
} }
@objc @objc
public func inviteContact(contactShare: ContactShareViewModel, fromViewController: UIViewController) { public func showInviteContact(contactShare: ContactShareViewModel, fromViewController: UIViewController) {
Logger.info("\(logTag) \(#function)") Logger.info("\(logTag) \(#function)")
guard MFMessageComposeViewController.canSendText() else { guard MFMessageComposeViewController.canSendText() else {
@ -89,7 +89,7 @@ public class ContactShareViewHelper: NSObject, CNContactViewControllerDelegate {
inviteFlow.sendSMSTo(phoneNumbers: phoneNumbers) inviteFlow.sendSMSTo(phoneNumbers: phoneNumbers)
} }
func addToContacts(contactShare: ContactShareViewModel, fromViewController: UIViewController) { func showAddToContacts(contactShare: ContactShareViewModel, fromViewController: UIViewController) {
Logger.info("\(logTag) \(#function)") Logger.info("\(logTag) \(#function)")
let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let actionSheet = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)

@ -501,13 +501,13 @@ class ContactViewController: OWSViewController, ContactShareViewHelperDelegate {
func didPressInvite() { func didPressInvite() {
Logger.info("\(logTag) \(#function)") Logger.info("\(logTag) \(#function)")
self.contactShareViewHelper.inviteContact(contactShare: self.contactShare, fromViewController: self) self.contactShareViewHelper.showInviteContact(contactShare: self.contactShare, fromViewController: self)
} }
func didPressAddToContacts() { func didPressAddToContacts() {
Logger.info("\(logTag) \(#function)") Logger.info("\(logTag) \(#function)")
self.contactShareViewHelper.addToContacts(contactShare: self.contactShare, fromViewController: self) self.contactShareViewHelper.showAddToContacts(contactShare: self.contactShare, fromViewController: self)
} }
func didPressDismiss() { func didPressDismiss() {

@ -2124,7 +2124,7 @@ typedef enum : NSUInteger {
OWSAssertIsOnMainThread(); OWSAssertIsOnMainThread();
OWSAssert(contactShare); OWSAssert(contactShare);
[self.contactShareViewHelper inviteContactWithContactShare:contactShare fromViewController:self]; [self.contactShareViewHelper showInviteContactWithContactShare:contactShare fromViewController:self];
} }
- (void)didTapShowAddToContactUIForContactShare:(ContactShareViewModel *)contactShare - (void)didTapShowAddToContactUIForContactShare:(ContactShareViewModel *)contactShare
@ -2132,7 +2132,7 @@ typedef enum : NSUInteger {
OWSAssertIsOnMainThread(); OWSAssertIsOnMainThread();
OWSAssert(contactShare); OWSAssert(contactShare);
[self.contactShareViewHelper addToContactsWithContactShare:contactShare fromViewController:self]; [self.contactShareViewHelper showAddToContactsWithContactShare:contactShare fromViewController:self];
} }
- (void)didTapFailedIncomingAttachment:(ConversationViewItem *)viewItem - (void)didTapFailedIncomingAttachment:(ConversationViewItem *)viewItem

@ -630,11 +630,11 @@ class MessageDetailViewController: OWSViewController, MediaGalleryDataSourceDele
} }
func didTapSendInvite(toContactShare contactShare: ContactShareViewModel) { func didTapSendInvite(toContactShare contactShare: ContactShareViewModel) {
contactShareViewHelper.inviteContact(contactShare: contactShare, fromViewController: self) contactShareViewHelper.showInviteContact(contactShare: contactShare, fromViewController: self)
} }
func didTapShowAddToContactUI(forContactShare contactShare: ContactShareViewModel) { func didTapShowAddToContactUI(forContactShare contactShare: ContactShareViewModel) {
contactShareViewHelper.addToContacts(contactShare: contactShare, fromViewController: self) contactShareViewHelper.showAddToContacts(contactShare: contactShare, fromViewController: self)
} }
var audioAttachmentPlayer: OWSAudioPlayer? var audioAttachmentPlayer: OWSAudioPlayer?

Loading…
Cancel
Save