Prevent remote deletion of gift badges.
This commit is contained in:
parent
02ea5ac806
commit
b223ebe95e
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ public final class RemoteDeleteUtil {
|
|||
(!message.getRecipient().isGroup() || message.getRecipient().isActiveGroup()) &&
|
||||
!message.getRecipient().isSelf() &&
|
||||
!message.isRemoteDelete() &&
|
||||
!MessageRecordUtil.hasGiftBadge(message) &&
|
||||
(currentTime - message.getDateSent()) < SEND_THRESHOLD;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue