mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-18 11:30:04 +00:00
36 lines
2.2 KiB
Swift
36 lines
2.2 KiB
Swift
import Foundation
|
|
|
|
public struct GlobalMessageIdsNamespace: Hashable {
|
|
public let peerIdNamespace: PeerId.Namespace
|
|
public let messageIdNamespace: MessageId.Namespace
|
|
|
|
public init(peerIdNamespace: PeerId.Namespace, messageIdNamespace: MessageId.Namespace) {
|
|
self.peerIdNamespace = peerIdNamespace
|
|
self.messageIdNamespace = messageIdNamespace
|
|
}
|
|
}
|
|
|
|
public final class SeedConfiguration {
|
|
public let globalMessageIdsPeerIdNamespaces: Set<GlobalMessageIdsNamespace>
|
|
public let initializeChatListWithHole: (topLevel: ChatListHole?, groups: ChatListHole?)
|
|
public let initializeMessageNamespacesWithHoles: [(PeerId.Namespace, MessageId.Namespace)]
|
|
public let existingMessageTags: MessageTags
|
|
public let messageTagsWithSummary: MessageTags
|
|
public let existingGlobalMessageTags: GlobalMessageTags
|
|
public let peerNamespacesRequiringMessageTextIndex: [PeerId.Namespace]
|
|
public let peerSummaryCounterTags: (Peer) -> PeerSummaryCounterTags
|
|
public let additionalChatListIndexNamespace: MessageId.Namespace?
|
|
|
|
public init(globalMessageIdsPeerIdNamespaces: Set<GlobalMessageIdsNamespace>, initializeChatListWithHole: (topLevel: ChatListHole?, groups: ChatListHole?), initializeMessageNamespacesWithHoles: [(PeerId.Namespace, MessageId.Namespace)], existingMessageTags: MessageTags, messageTagsWithSummary: MessageTags, existingGlobalMessageTags: GlobalMessageTags, peerNamespacesRequiringMessageTextIndex: [PeerId.Namespace], peerSummaryCounterTags: @escaping (Peer) -> PeerSummaryCounterTags, additionalChatListIndexNamespace: MessageId.Namespace?) {
|
|
self.globalMessageIdsPeerIdNamespaces = globalMessageIdsPeerIdNamespaces
|
|
self.initializeChatListWithHole = initializeChatListWithHole
|
|
self.initializeMessageNamespacesWithHoles = initializeMessageNamespacesWithHoles
|
|
self.existingMessageTags = existingMessageTags
|
|
self.messageTagsWithSummary = messageTagsWithSummary
|
|
self.existingGlobalMessageTags = existingGlobalMessageTags
|
|
self.peerNamespacesRequiringMessageTextIndex = peerNamespacesRequiringMessageTextIndex
|
|
self.peerSummaryCounterTags = peerSummaryCounterTags
|
|
self.additionalChatListIndexNamespace = additionalChatListIndexNamespace
|
|
}
|
|
}
|