Skip to content

Commit

Permalink
update notif.pref.
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Oct 19, 2023
1 parent f64e34b commit 606a6a3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,12 @@ function addActions(reportID, text = '', file) {
isLastMessageDeletedParentAction: null,
};

const report = ReportUtils.getReport(reportID);

if (lodashGet(report, 'notificationPreference', null) === CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN) {
optimisticReport.notificationPreference = CONST.REPORT.NOTIFICATION_PREFERENCE.ALWAYS;
}

// Optimistically add the new actions to the store before waiting to save them to the server
const optimisticReportActions = {};
if (text) {
Expand Down

0 comments on commit 606a6a3

Please sign in to comment.