From 0d4d70aa03cb5780521952d384dcd48e1311740b Mon Sep 17 00:00:00 2001 From: Brandon Stites Date: Tue, 12 Sep 2023 18:47:23 -0600 Subject: [PATCH 1/2] Remove clearAfter --- Cloudflare_CA.crt | Bin 0 -> 751 bytes src/libs/actions/User.js | 1 - .../settings/Profile/CustomStatus/StatusPage.js | 3 +-- 3 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 Cloudflare_CA.crt diff --git a/Cloudflare_CA.crt b/Cloudflare_CA.crt new file mode 100644 index 0000000000000000000000000000000000000000..f02f49a951fc09fad29018d940c6895dd81c71e1 GIT binary patch literal 751 zcmXqLVtQ@R#N@MpnTe5!NknB3_Jmj*})3sY&Z?5Eb zez@4xz}bKg7!k7kjEw(TSb%AQ%|Hmm7Y6Y;4A_7aFr664g2eb(#8^ZU#0BQ@ItU!* z-THbW4>Q~4-w#CJA}1K;#vTTP#ttSYMn^wCAKryYD_bX@ipr{sJ5%ail&)8F{Kny? z|A*3BdNgIuN;ZYu+@*i6yH9k=rN0J(vU0xy&)t3gzIV6YCnh$}6+kl>=d1D9-!N!C zS^JXn!Zi<9=E!8R$XCUw4^#>+WiUBiVlV!2wOr-+v<%yc`L&CSZ~gka?qjm|7Iv+T Lth|2C?zwLOUZwfl literal 0 HcmV?d00001 diff --git a/src/libs/actions/User.js b/src/libs/actions/User.js index 7482c13268e4..2ac26e61fa38 100644 --- a/src/libs/actions/User.js +++ b/src/libs/actions/User.js @@ -845,7 +845,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 0d7e1c09454d..1ec2a3189322 100644 --- a/src/pages/settings/Profile/CustomStatus/StatusPage.js +++ b/src/pages/settings/Profile/CustomStatus/StatusPage.js @@ -44,8 +44,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); From a097fdbff7df39344c0d2d3f5d2c48e3f7c852a9 Mon Sep 17 00:00:00 2001 From: Brandon Stites Date: Wed, 13 Sep 2023 08:05:55 -0600 Subject: [PATCH 2/2] Remove useless import --- src/pages/settings/Profile/CustomStatus/StatusPage.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/settings/Profile/CustomStatus/StatusPage.js b/src/pages/settings/Profile/CustomStatus/StatusPage.js index 1ec2a3189322..7465045bc5ed 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';