Remove 2 minute expiration
This commit is contained in:
parent
af19c1bd44
commit
e8427b3081
2 changed files with 1 additions and 7 deletions
|
@ -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)}
|
||||
|
|
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue