Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -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, {
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');
Comment thread
stitesExpensify marked this conversation as resolved.
Resolved
User.updateCustomStatus({text: defaultText, emojiCode: defaultEmoji, clearAfter: endOfDay});
User.updateCustomStatus({text: defaultText, emojiCode: defaultEmoji});

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