Skip to content

Commit

Permalink
Merge pull request Expensify#35362 from tienifr/fix/34814
Browse files Browse the repository at this point in the history
Fix: Focus mode - User priority mode is switched back to focus automatically
  • Loading branch information
luacmartins authored Feb 19, 2024
2 parents 0f409d4 + ac2e6e6 commit 021c1fd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/libs/actions/User.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,13 +680,11 @@ function updateChatPriorityMode(mode: ValueOf<typeof CONST.PRIORITY_MODE>, autom
},
];

if (autoSwitchedToFocusMode) {
optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.NVP_TRY_FOCUS_MODE,
value: true,
});
}
optimisticData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: ONYXKEYS.NVP_TRY_FOCUS_MODE,
value: true,
});

const parameters: UpdateChatPriorityModeParams = {
value: mode,
Expand Down

0 comments on commit 021c1fd

Please sign in to comment.