diff --git a/Signal/ConversationView/Components/CVComponentMessage.swift b/Signal/ConversationView/Components/CVComponentMessage.swift index 3d737424d4..a0df0bc4ee 100644 --- a/Signal/ConversationView/Components/CVComponentMessage.swift +++ b/Signal/ConversationView/Components/CVComponentMessage.swift @@ -800,7 +800,7 @@ public class CVComponentMessage: CVComponentBase, CVRootComponent { reactionsFrame.y = contentFrame.maxY - reactionsVOverlap let leftAlignX = contentFrame.minX + reactionsHInset let rightAlignX = contentFrame.maxX - (reactionsSize.width + reactionsHInset) - if isIncoming ^ CurrentAppContext().isRTL { + if isIncoming != CurrentAppContext().isRTL { reactionsFrame.x = max(leftAlignX, rightAlignX) } else { reactionsFrame.x = min(leftAlignX, rightAlignX) diff --git a/SignalServiceKit/Util/Math+OWS.swift b/SignalServiceKit/Util/Math+OWS.swift index cbf8b56ed2..5da588d891 100644 --- a/SignalServiceKit/Util/Math+OWS.swift +++ b/SignalServiceKit/Util/Math+OWS.swift @@ -136,11 +136,3 @@ public extension UInt64 { NSNumber(value: self) } } - -// MARK: - - -public extension Bool { - static func ^(left: Bool, right: Bool) -> Bool { - return left != right - } -}