pull/941/head
Ryan Zhao 1 year ago
parent bae9c3cbc3
commit a3f8d9e81a

@ -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,

@ -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)

Loading…
Cancel
Save