Bump DOE timer from 3h to 24h

This commit is contained in:
ayumi-signal 2023-10-13 14:54:36 -07:00 committed by GitHub
parent d7b53f3d27
commit c892febdbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 10 deletions

View file

@ -116,7 +116,7 @@ import {
} from '../../messages/MessageSendState';
import * as log from '../../logging/log';
import { getConversationColorAttributes } from '../../util/getConversationColorAttributes';
import { DAY, HOUR, DurationInSeconds } from '../../util/durations';
import { DAY, DurationInSeconds } from '../../util/durations';
import { getStoryReplyText } from '../../util/getStoryReplyText';
import type { MessageAttributesWithPaymentEvent } from '../../messages/helpers';
import {
@ -139,7 +139,6 @@ import { getCallIdFromEra } from '../../util/callDisposition';
export { isIncoming, isOutgoing, isStory };
const THREE_HOURS = 3 * HOUR;
const linkify = LinkifyIt();
type FormattedContact = Partial<ConversationType> &
@ -1842,7 +1841,7 @@ export function canDeleteForEveryone(
// Has the message already been deleted?
!message.deletedForEveryone &&
// Is it too old to delete?
isMoreRecentThan(message.sent_at, THREE_HOURS) &&
isMoreRecentThan(message.sent_at, DAY) &&
// Is it sent to anyone?
someSendStatus(message.sendStateByConversationId, isSent)
);