mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Business
This commit is contained in:
@@ -15,6 +15,7 @@ import ChatContextQuery
|
||||
import ChatInputContextPanelNode
|
||||
import ChatListUI
|
||||
import ComponentFlow
|
||||
import ComponentDisplayAdapters
|
||||
|
||||
private enum CommandChatInputContextPanelEntryStableId: Hashable {
|
||||
case editShortcuts
|
||||
@@ -165,6 +166,8 @@ private struct CommandChatInputContextPanelEntry: Comparable, Identifiable {
|
||||
openStories: { _, _ in
|
||||
},
|
||||
dismissNotice: { _ in
|
||||
},
|
||||
editPeer: { _ in
|
||||
}
|
||||
)
|
||||
|
||||
@@ -479,8 +482,12 @@ final class CommandChatInputContextPanelNode: ChatInputContextPanelNode {
|
||||
let (duration, curve) = listViewAnimationDurationAndCurve(transition: transition)
|
||||
let updateSizeAndInsets = ListViewUpdateSizeAndInsets(size: size, insets: insets, duration: duration, curve: curve)
|
||||
|
||||
self.contentOffsetChangeTransition = Transition(transition)
|
||||
|
||||
self.listView.transaction(deleteIndices: [], insertIndicesAndItems: [], updateIndicesAndItems: [], options: [.Synchronous, .LowLatency], scrollToItem: nil, updateSizeAndInsets: updateSizeAndInsets, stationaryItemRange: nil, updateOpaqueState: nil, completion: { _ in })
|
||||
|
||||
self.contentOffsetChangeTransition = nil
|
||||
|
||||
if !hadValidLayout {
|
||||
while !self.enqueuedTransitions.isEmpty {
|
||||
self.dequeueTransition()
|
||||
|
||||
Reference in New Issue
Block a user