mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Add a separate autoclear attribute
This commit is contained in:
@@ -209,6 +209,8 @@ func messageMediaEditingOptions(message: Message) -> MessageMediaEditingOptions
|
||||
for attribute in message.attributes {
|
||||
if attribute is AutoremoveTimeoutMessageAttribute {
|
||||
return []
|
||||
} else if attribute is AutoclearTimeoutMessageAttribute {
|
||||
return []
|
||||
}
|
||||
}
|
||||
|
||||
@@ -809,6 +811,9 @@ func contextMenuForChatPresentationInterfaceState(chatPresentationInterfaceState
|
||||
if let _ = attribute as? AutoremoveTimeoutMessageAttribute {
|
||||
hasAutoremove = true
|
||||
break
|
||||
} else if let _ = attribute as? AutoclearTimeoutMessageAttribute {
|
||||
hasAutoremove = true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user