Remove 2 minute expiration

This commit is contained in:
Chewbacca 2022-12-05 08:39:28 -05:00 committed by Alex Gleason
parent af19c1bd44
commit e8427b3081
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 1 additions and 7 deletions

View file

@ -183,11 +183,6 @@ const ChatPageMain = () => {
label={intl.formatMessage(messages.autoDeleteLabel)}
hint={intl.formatMessage(messages.autoDeleteHint)}
/>
<ListItem
label={intl.formatMessage(messages.autoDelete2Minutes)}
onSelect={() => handleUpdateChat(MessageExpirationValues.TWO_MINUTES)}
isSelected={chat.message_expiration === MessageExpirationValues.TWO_MINUTES}
/>
<ListItem
label={intl.formatMessage(messages.autoDelete7Days)}
onSelect={() => handleUpdateChat(MessageExpirationValues.SEVEN)}

View file

@ -15,10 +15,9 @@ import { useFetchRelationships } from './relationships';
import type { IAccount } from './accounts';
export const messageExpirationOptions = [120, 604800, 1209600, 2592000, 7776000];
export const messageExpirationOptions = [604800, 1209600, 2592000, 7776000];
export enum MessageExpirationValues {
'TWO_MINUTES' = messageExpirationOptions[0],
'SEVEN' = messageExpirationOptions[1],
'FOURTEEN' = messageExpirationOptions[2],
'THIRTY' = messageExpirationOptions[3],