Skip to content

Commit

Permalink
Prevent remote deletion of gift badges.
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-signal authored and cody-signal committed Jul 21, 2022
1 parent 02ea5ac commit b223ebe
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -44,6 +44,7 @@ private static boolean isValidSend(MessageRecord message, long currentTime) {
(!message.getRecipient().isGroup() || message.getRecipient().isActiveGroup()) &&
!message.getRecipient().isSelf() &&
!message.isRemoteDelete() &&
!MessageRecordUtil.hasGiftBadge(message) &&
(currentTime - message.getDateSent()) < SEND_THRESHOLD;
}
}

0 comments on commit b223ebe

Please sign in to comment.