mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
[WIP] View-once audio messages
This commit is contained in:
@@ -94,8 +94,14 @@ func managedAutoremoveMessageOperations(network: Network, postbox: Postbox, isRe
|
||||
for i in 0 ..< updatedMedia.count {
|
||||
if let _ = updatedMedia[i] as? TelegramMediaImage {
|
||||
updatedMedia[i] = TelegramMediaExpiredContent(data: .image)
|
||||
} else if let _ = updatedMedia[i] as? TelegramMediaFile {
|
||||
updatedMedia[i] = TelegramMediaExpiredContent(data: .file)
|
||||
} else if let file = updatedMedia[i] as? TelegramMediaFile {
|
||||
if file.isInstantVideo {
|
||||
updatedMedia[i] = TelegramMediaExpiredContent(data: .videoMessage)
|
||||
} else if file.isVoice {
|
||||
updatedMedia[i] = TelegramMediaExpiredContent(data: .voiceMessage)
|
||||
} else {
|
||||
updatedMedia[i] = TelegramMediaExpiredContent(data: .file)
|
||||
}
|
||||
}
|
||||
}
|
||||
var updatedAttributes = currentMessage.attributes
|
||||
|
||||
Reference in New Issue
Block a user