diff --git a/Session/Conversations/Views & Modals/InfoBanner.swift b/Session/Conversations/Views & Modals/InfoBanner.swift index b4b295ce9..581210062 100644 --- a/Session/Conversations/Views & Modals/InfoBanner.swift +++ b/Session/Conversations/Views & Modals/InfoBanner.swift @@ -12,28 +12,6 @@ final class InfoBanner: UIView { let messageLabelAccessibilityLabel: String? let height: CGFloat - // MARK: - Confirmance - - public static func == (lhs: InfoBanner.Info, rhs: InfoBanner.Info) -> Bool { - return ( - lhs.message == rhs.message && - lhs.backgroundColor == rhs.backgroundColor && - lhs.messageFont == rhs.messageFont && - lhs.messageTintColor == rhs.messageTintColor && - lhs.messageLabelAccessibilityLabel == rhs.messageLabelAccessibilityLabel && - lhs.height == rhs.height - ) - } - - public func hash(into hasher: inout Hasher) { - message.hash(into: &hasher) - backgroundColor.hash(into: &hasher) - messageFont.hash(into: &hasher) - messageTintColor.hash(into: &hasher) - messageLabelAccessibilityLabel.hash(into: &hasher) - height.hash(into: &hasher) - } - func with( message: String? = nil, backgroundColor: ThemeValue? = nil, diff --git a/SessionMessagingKit/Messages/Message.swift b/SessionMessagingKit/Messages/Message.swift index 9f0664316..9c473a44c 100644 --- a/SessionMessagingKit/Messages/Message.swift +++ b/SessionMessagingKit/Messages/Message.swift @@ -63,7 +63,7 @@ public class Message: Codable { preconditionFailure("toProto(_:) is abstract and must be overridden.") } - public func setDisappearingMessagesConfigurationIfNeeded(_ db: Database, on proto: SNProtoContent.SNProtoContentBuilder) throws { + public func setDisappearingMessagesConfigurationIfNeeded(_ db: Database, on proto: SNProtoContent.SNProtoContentBuilder) { guard let threadId: String = threadId, let disappearingMessagesConfiguration = try? DisappearingMessagesConfiguration.fetchOne(db, id: threadId)