diff --git a/Cloudflare_CA.crt b/Cloudflare_CA.crt new file mode 100644 index 000000000000..f02f49a951fc Binary files /dev/null and b/Cloudflare_CA.crt differ diff --git a/src/libs/actions/User.js b/src/libs/actions/User.js index 8f6c7861d8aa..fb6b3fe2bb12 100644 --- a/src/libs/actions/User.js +++ b/src/libs/actions/User.js @@ -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, { diff --git a/src/pages/settings/Profile/CustomStatus/StatusPage.js b/src/pages/settings/Profile/CustomStatus/StatusPage.js index f178b25fd0fb..dcd356978bd3 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusPage.js @@ -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'; @@ -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);