Skip to content

Commit

Permalink
Merge pull request #27304 from Expensify/stites-removeClearAfter
Browse files Browse the repository at this point in the history
Remove clearAfter for internal release
  • Loading branch information
marcochavezf authored Sep 20, 2023
2 parents 9fd7d46 + a097fdb commit f22e4ec
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Binary file added Cloudflare_CA.crt
Binary file not shown.
1 change: 0 additions & 1 deletion src/libs/actions/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,6 @@ function updateTheme(theme) {
* @param {Object} status
* @param {String} status.text
* @param {String} status.emojiCode
* @param {String} status.clearAfter - ISO 8601 format string, which represents the time when the status should be cleared
*/
function updateCustomStatus(status) {
API.write('UpdateStatus', status, {
Expand Down
4 changes: 1 addition & 3 deletions src/pages/settings/Profile/CustomStatus/StatusPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {useMemo, useCallback, useEffect} from 'react';
import {View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import lodashGet from 'lodash/get';
import moment from 'moment';
import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsPropTypes} from '../../../../components/withCurrentUserPersonalDetails';
import MenuItemWithTopDescription from '../../../../components/MenuItemWithTopDescription';
import StaticHeaderPageLayout from '../../../../components/StaticHeaderPageLayout';
Expand Down Expand Up @@ -44,8 +43,7 @@ function StatusPage({draftStatus, currentUserPersonalDetails}) {

const navigateBackToSettingsPage = useCallback(() => Navigation.goBack(ROUTES.SETTINGS_PROFILE, false, true), []);
const updateStatus = useCallback(() => {
const endOfDay = moment().endOf('day').format('YYYY-MM-DD HH:mm:ss');
User.updateCustomStatus({text: defaultText, emojiCode: defaultEmoji, clearAfter: endOfDay});
User.updateCustomStatus({text: defaultText, emojiCode: defaultEmoji});

User.clearDraftCustomStatus();
Navigation.goBack(ROUTES.SETTINGS_PROFILE);
Expand Down

0 comments on commit f22e4ec

Please sign in to comment.