mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 08:01:10 +00:00

git-subtree-dir: submodules/TelegramUI git-subtree-mainline: 5c1613d1048026b9e00a6ce753775cef87eb53fa git-subtree-split: fa3ac0b61a27c8dd3296518a15891a6f9750cbf2
21 lines
693 B
Swift
21 lines
693 B
Swift
import Postbox
|
|
import UIKit
|
|
import Display
|
|
|
|
enum ChatHistoryInitialSearchLocation: Equatable {
|
|
case index(MessageIndex)
|
|
case id(MessageId)
|
|
}
|
|
|
|
struct ChatHistoryLocationInput: Equatable {
|
|
let content: ChatHistoryLocation
|
|
let id: Int32
|
|
}
|
|
|
|
enum ChatHistoryLocation: Equatable {
|
|
case Initial(count: Int)
|
|
case InitialSearch(location: ChatHistoryInitialSearchLocation, count: Int)
|
|
case Navigation(index: MessageHistoryAnchorIndex, anchorIndex: MessageHistoryAnchorIndex, count: Int)
|
|
case Scroll(index: MessageHistoryAnchorIndex, anchorIndex: MessageHistoryAnchorIndex, sourceIndex: MessageHistoryAnchorIndex, scrollPosition: ListViewScrollPosition, animated: Bool)
|
|
}
|