mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 19:40:19 +00:00
23 lines
507 B
Swift
23 lines
507 B
Swift
import Foundation
|
|
|
|
final class MutableChatListHolesView {
|
|
fileprivate var entries = Set<ChatListHole>()
|
|
|
|
func update(holes: Set<ChatListHole>) -> Bool {
|
|
if self.entries != holes {
|
|
self.entries = holes
|
|
return true
|
|
} else {
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
|
|
public final class ChatListHolesView {
|
|
public let entries: Set<ChatListHole>
|
|
|
|
init(_ mutableView: MutableChatListHolesView) {
|
|
self.entries = mutableView.entries
|
|
}
|
|
}
|