mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-07 01:10:09 +00:00
Fix pinned animation
This commit is contained in:
parent
417908a179
commit
c7c8beba5b
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user