diff --git a/Signal/src/ViewControllers/MessageDetailViewController.swift b/Signal/src/ViewControllers/MessageDetailViewController.swift index 81de50e24..f9c42ba7c 100644 --- a/Signal/src/ViewControllers/MessageDetailViewController.swift +++ b/Signal/src/ViewControllers/MessageDetailViewController.swift @@ -120,9 +120,6 @@ class MessageDetailViewController: OWSViewController, MediaGalleryDataSourceDele scrollView.autoPinWidthToSuperview(withMargin: 0) scrollView.autoPin(toTopLayoutGuideOf: self, withInset: 0) - // See notes on how to use UIScrollView with iOS Auto Layout: - // - // https://developer.apple.com/library/content/releasenotes/General/RN-iOSSDK-6_0/ let contentView = UIView.container() self.contentView = contentView scrollView.addSubview(contentView) diff --git a/SignalMessaging/attachments/EditContactShareNameViewController.swift b/SignalMessaging/attachments/EditContactShareNameViewController.swift index 14111331b..da6ff149e 100644 --- a/SignalMessaging/attachments/EditContactShareNameViewController.swift +++ b/SignalMessaging/attachments/EditContactShareNameViewController.swift @@ -252,9 +252,6 @@ public class EditContactShareNameViewController: OWSViewController, ContactNameF let fieldsView = createFieldsView() - // See notes on how to use UIScrollView with iOS Auto Layout: - // - // https://developer.apple.com/library/content/releasenotes/General/RN-iOSSDK-6_0/ scrollView.addSubview(fieldsView) fieldsView.autoPinLeadingToSuperviewMargin() fieldsView.autoPinTrailingToSuperviewMargin() diff --git a/SignalMessaging/contacts/OWSContactsManager.m b/SignalMessaging/contacts/OWSContactsManager.m index 1e5fae453..7cda1c4fa 100644 --- a/SignalMessaging/contacts/OWSContactsManager.m +++ b/SignalMessaging/contacts/OWSContactsManager.m @@ -343,10 +343,10 @@ NSString *const OWSContactsManagerSignalAccountsDidChangeNotification { OWSAssertIsOnMainThread(); - // if ([signalAccounts isEqual:self.signalAccounts]) { - // DDLogDebug(@"%@ SignalAccounts unchanged.", self.logTag); - // return; - // } + if ([signalAccounts isEqual:self.signalAccounts]) { + DDLogDebug(@"%@ SignalAccounts unchanged.", self.logTag); + return; + } NSMutableDictionary *signalAccountMap = [NSMutableDictionary new]; for (SignalAccount *signalAccount in signalAccounts) {