Indicate that a topic is closed in View as messages

This commit is contained in:
Isaac
2023-11-24 01:38:48 +04:00
parent b631780d00
commit 3aaa0ad17b
4 changed files with 22 additions and 3 deletions

View File

@@ -646,11 +646,13 @@ public final class Message {
public let title: String
public let icon: Int64?
public let iconColor: Int32
public let isClosed: Bool
public init(title: String, icon: Int64?, iconColor: Int32) {
public init(title: String, icon: Int64?, iconColor: Int32, isClosed: Bool) {
self.title = title
self.icon = icon
self.iconColor = iconColor
self.isClosed = isClosed
}
public static func ==(lhs: AssociatedThreadInfo, rhs: AssociatedThreadInfo) -> Bool {
@@ -666,6 +668,9 @@ public final class Message {
if lhs.iconColor != rhs.iconColor {
return false
}
if lhs.isClosed != rhs.isClosed {
return false
}
return true
}
}