mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Indicate that a topic is closed in View as messages
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user