mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-24 20:06:39 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
33 lines
911 B
Swift
33 lines
911 B
Swift
import Foundation
|
|
import UIKit
|
|
|
|
public enum ChatNavigationButtonAction: Equatable {
|
|
public enum ChatInfoSection {
|
|
case groupsInCommon
|
|
case recommendedChannels
|
|
}
|
|
case openChatInfo(expandAvatar: Bool, section: ChatInfoSection?)
|
|
case clearHistory
|
|
case clearCache
|
|
case cancelMessageSelection
|
|
case search(hasTags: Bool)
|
|
case dismiss
|
|
case toggleInfoPanel
|
|
case spacer
|
|
case edit
|
|
}
|
|
|
|
public struct ChatNavigationButton: Equatable {
|
|
public let action: ChatNavigationButtonAction
|
|
public let buttonItem: UIBarButtonItem
|
|
|
|
public init(action: ChatNavigationButtonAction, buttonItem: UIBarButtonItem) {
|
|
self.action = action
|
|
self.buttonItem = buttonItem
|
|
}
|
|
|
|
public static func ==(lhs: ChatNavigationButton, rhs: ChatNavigationButton) -> Bool {
|
|
return lhs.action == rhs.action && lhs.buttonItem === rhs.buttonItem
|
|
}
|
|
}
|