diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.h b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.h index 6a89afc2b..b899ed1b1 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.h +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.h @@ -21,7 +21,7 @@ typedef NS_ENUM(NSUInteger, OWSMessageGestureLocation) { OWSMessageGestureLocation_QuotedReply, }; -extern const UIDataDetectorTypes OWSAllowedDataDetectorTypes; +extern const UIDataDetectorTypes kOWSAllowedDataDetectorTypes; @protocol OWSMessageBubbleViewDelegate diff --git a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m index 93da4de9f..27f0567ce 100644 --- a/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m +++ b/Signal/src/ViewControllers/ConversationView/Cells/OWSMessageBubbleView.m @@ -21,7 +21,7 @@ NS_ASSUME_NONNULL_BEGIN -const UIDataDetectorTypes OWSAllowedDataDetectorTypes +const UIDataDetectorTypes kOWSAllowedDataDetectorTypes = UIDataDetectorTypeLink | UIDataDetectorTypeAddress | UIDataDetectorTypeCalendarEvent; @interface OWSMessageBubbleView () @@ -97,7 +97,7 @@ const UIDataDetectorTypes OWSAllowedDataDetectorTypes self.bodyTextView = [self newTextView]; // Setting dataDetectorTypes is expensive. Do it just once. - self.bodyTextView.dataDetectorTypes = OWSAllowedDataDetectorTypes; + self.bodyTextView.dataDetectorTypes = kOWSAllowedDataDetectorTypes; self.bodyTextView.hidden = YES; self.footerView = [OWSMessageFooterView new]; diff --git a/Signal/src/ViewControllers/LongTextViewController.swift b/Signal/src/ViewControllers/LongTextViewController.swift index 843c4f3d8..4a3940e1c 100644 --- a/Signal/src/ViewControllers/LongTextViewController.swift +++ b/Signal/src/ViewControllers/LongTextViewController.swift @@ -74,7 +74,7 @@ public class LongTextViewController: OWSViewController { messageTextView.showsVerticalScrollIndicator = true messageTextView.isUserInteractionEnabled = true messageTextView.textColor = Theme.primaryColor - messageTextView.dataDetectorTypes = OWSAllowedDataDetectorTypes + messageTextView.dataDetectorTypes = kOWSAllowedDataDetectorTypes messageTextView.text = messageBody // RADAR #18669