mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various improvements
This commit is contained in:
@@ -184,6 +184,9 @@ func rightNavigationButtonForChatInterfaceState(context: AccountContext, present
|
||||
}
|
||||
|
||||
func secondaryRightNavigationButtonForChatInterfaceState(context: AccountContext, presentationInterfaceState: ChatPresentationInterfaceState, strings: PresentationStrings, currentButton: ChatNavigationButton?, target: Any?, selector: Selector?, chatInfoNavigationButton: ChatNavigationButton?, moreInfoNavigationButton: ChatNavigationButton?) -> ChatNavigationButton? {
|
||||
if presentationInterfaceState.interfaceState.selectionState != nil {
|
||||
return nil
|
||||
}
|
||||
if case .peer(context.account.peerId) = presentationInterfaceState.chatLocation {
|
||||
return moreInfoNavigationButton
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user