mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Don't allow removing the screenshot message
This commit is contained in:
@@ -1603,6 +1603,12 @@ public final class Postbox {
|
||||
for id in self.messageHistoryUnsentTable.get() {
|
||||
transaction.updateMessage(id, update: { message in
|
||||
if !message.flags.contains(.Failed) {
|
||||
for media in message.media {
|
||||
if media.preventsAutomaticMessageSendingFailure() {
|
||||
return .skip
|
||||
}
|
||||
}
|
||||
|
||||
if message.timestamp + 60 * 10 > timestampForAbsoluteTimeBasedOperations {
|
||||
return .skip
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user