mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Extract libyuv into a standalone module
This commit is contained in:
@@ -843,13 +843,20 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
|
||||
|
||||
if !hasAutoremove {
|
||||
for media in message.media {
|
||||
if media is TelegramMediaAction {
|
||||
if let action = media as? TelegramMediaAction {
|
||||
if let channel = message.peers[message.id.peerId] as? TelegramChannel {
|
||||
if channel.flags.contains(.isCreator) || (channel.adminRights?.rights.contains(.canDeleteMessages) == true) {
|
||||
} else {
|
||||
isUnremovableAction = true
|
||||
}
|
||||
}
|
||||
|
||||
switch action.action {
|
||||
case .historyScreenshot:
|
||||
isUnremovableAction = true
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
if let file = media as? TelegramMediaFile {
|
||||
if file.isVideo {
|
||||
|
||||
Reference in New Issue
Block a user