From a3f8d9e81a8f4ef077d7ea05083887d8f90ea1a2 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Mon, 9 Jan 2023 11:37:46 +1100 Subject: [PATCH] clean --- .../Views & Modals/InfoBanner.swift | 22 ------------------- SessionMessagingKit/Messages/Message.swift | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) 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)