clarify naming

// FREEBIE
This commit is contained in:
Michael Kirk 2018-05-09 11:13:29 -04:00
parent 69aeb041ba
commit 609746abec
4 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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