Fix pinned animation

This commit is contained in:
Isaac 2025-05-22 02:42:33 +08:00
parent 417908a179
commit c7c8beba5b

View File

@ -293,11 +293,14 @@ extension ChatControllerImpl {
if self.presentationInterfaceState.search != nil && contentData.state.hasSearchTags { if self.presentationInterfaceState.search != nil && contentData.state.hasSearchTags {
displayActionsPanel = true displayActionsPanel = true
} }
if displayActionsPanel != didDisplayActionsPanel { if displayActionsPanel != didDisplayActionsPanel {
animated = true animated = true
} }
if previousState.pinnedMessage != contentData.state.pinnedMessage {
animated = true
}
self.updateChatPresentationInterfaceState(animated: animated && self.willAppear, interactive: false, { presentationInterfaceState in self.updateChatPresentationInterfaceState(animated: animated && self.willAppear, interactive: false, { presentationInterfaceState in
var presentationInterfaceState = presentationInterfaceState var presentationInterfaceState = presentationInterfaceState
presentationInterfaceState = presentationInterfaceState.updatedPeer({ _ in presentationInterfaceState = presentationInterfaceState.updatedPeer({ _ in