Fix title panels

This commit is contained in:
Isaac
2024-01-28 00:18:29 +01:00
parent 3da099ff70
commit 9ee9845439
3 changed files with 7 additions and 3 deletions

View File

@@ -5,7 +5,11 @@ import AccountContext
import ChatPresentationInterfaceState
import ChatControllerInteraction
func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceState: ChatPresentationInterfaceState, context: AccountContext, currentPanel: ChatTitleAccessoryPanelNode?, controllerInteraction: ChatControllerInteraction?, interfaceInteraction: ChatPanelInterfaceInteraction?) -> ChatTitleAccessoryPanelNode? {
func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceState: ChatPresentationInterfaceState, context: AccountContext, currentPanel: ChatTitleAccessoryPanelNode?, controllerInteraction: ChatControllerInteraction?, interfaceInteraction: ChatPanelInterfaceInteraction?, force: Bool) -> ChatTitleAccessoryPanelNode? {
if !force, case .standard(.embedded) = chatPresentationInterfaceState.mode {
return nil
}
if case .overlay = chatPresentationInterfaceState.mode {
return nil
}