Skip to content

Commit

Permalink
Remove clearAfter
Browse files Browse the repository at this point in the history
  • Loading branch information
stitesExpensify committed Sep 13, 2023
1 parent e426b39 commit 0d4d70a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 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 @@ -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
3 changes: 1 addition & 2 deletions src/pages/settings/Profile/CustomStatus/StatusPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d4d70a

Please sign in to comment.