From 5817347d322fc45ac714f5ea5e72dfec98c0a4ae Mon Sep 17 00:00:00 2001 From: sashaweiss-signal Date: Tue, 19 May 2026 10:26:50 -0700 Subject: [PATCH] Remove ^ operator for Bool --- .../ConversationView/Components/CVComponentMessage.swift | 2 +- SignalServiceKit/Util/Math+OWS.swift | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) 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 - } -}