mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
26 lines
906 B
Swift
26 lines
906 B
Swift
import Foundation
|
|
import Postbox
|
|
import Display
|
|
|
|
public enum ChatHistoryInitialSearchLocation: Equatable {
|
|
case index(MessageIndex)
|
|
case id(MessageId)
|
|
}
|
|
|
|
public enum ChatHistoryLocation: Equatable {
|
|
case Initial(count: Int)
|
|
case InitialSearch(location: ChatHistoryInitialSearchLocation, count: Int, highlight: Bool)
|
|
case Navigation(index: MessageHistoryAnchorIndex, anchorIndex: MessageHistoryAnchorIndex, count: Int, highlight: Bool)
|
|
case Scroll(index: MessageHistoryAnchorIndex, anchorIndex: MessageHistoryAnchorIndex, sourceIndex: MessageHistoryAnchorIndex, scrollPosition: ListViewScrollPosition, animated: Bool, highlight: Bool)
|
|
}
|
|
|
|
public struct ChatHistoryLocationInput: Equatable {
|
|
public var content: ChatHistoryLocation
|
|
public var id: Int32
|
|
|
|
public init(content: ChatHistoryLocation, id: Int32) {
|
|
self.content = content
|
|
self.id = id
|
|
}
|
|
}
|