Skip to content

Commit

Permalink
Merge pull request Expensify#9512 from Expensify/tgolen-fix-notificat…
Browse files Browse the repository at this point in the history
…ion-pref

Get the notification preference for all report types
  • Loading branch information
robertjchen authored Jun 24, 2022
2 parents 4b79f0b + a06707f commit 342f6b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,7 @@ function getSimplifiedReportObject(report) {
const oldPolicyName = lodashGet(report, ['reportNameValuePairs', 'oldPolicyName'], '');

const lastActorEmail = lodashGet(report, 'lastActionActorEmail', '');
const notificationPreference = ReportUtils.isChatRoom({chatType})
? lodashGet(report, ['reportNameValuePairs', 'notificationPreferences', currentUserAccountID], 'daily')
: '';
const notificationPreference = lodashGet(report, ['reportNameValuePairs', 'notificationPreferences', currentUserAccountID], 'daily');

// Used for User Created Policy Rooms, will denote how access to a chat room is given among workspace members
const visibility = lodashGet(report, ['reportNameValuePairs', 'visibility']);
Expand Down

0 comments on commit 342f6b4

Please sign in to comment.