Swiftgram/submodules/Postbox/Sources/PeerChatInterfaceState.swift
2019-11-01 17:11:12 +04:00

15 lines
473 B
Swift

public protocol PeerChatListEmbeddedInterfaceState: PostboxCoding {
var timestamp: Int32 { get }
func isEqual(to: PeerChatListEmbeddedInterfaceState) -> Bool
}
public protocol PeerChatInterfaceState: PostboxCoding {
var chatListEmbeddedState: PeerChatListEmbeddedInterfaceState? { get }
var historyScrollMessageIndex: MessageIndex? { get }
var associatedMessageIds: [MessageId] { get }
func isEqual(to: PeerChatInterfaceState) -> Bool
}