mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Further attach menu refinements
This commit is contained in:
@@ -26,6 +26,8 @@ import TelegramNotices
|
||||
import ReactionListContextMenuContent
|
||||
import TelegramUIPreferences
|
||||
import Translate
|
||||
import ChatPresentationInterfaceState
|
||||
import Pasteboard
|
||||
|
||||
private struct MessageContextMenuData {
|
||||
let starStatus: Bool?
|
||||
@@ -290,17 +292,6 @@ enum ChatMessageContextMenuAction {
|
||||
case sheet(ChatMessageContextMenuSheetAction)
|
||||
}
|
||||
|
||||
struct MessageMediaEditingOptions: OptionSet {
|
||||
var rawValue: Int32
|
||||
|
||||
init(rawValue: Int32) {
|
||||
self.rawValue = rawValue
|
||||
}
|
||||
|
||||
static let imageOrVideo = MessageMediaEditingOptions(rawValue: 1 << 0)
|
||||
static let file = MessageMediaEditingOptions(rawValue: 1 << 1)
|
||||
}
|
||||
|
||||
func messageMediaEditingOptions(message: Message) -> MessageMediaEditingOptions {
|
||||
if message.id.peerId.namespace == Namespaces.Peer.SecretChat {
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user