From a06707f4f84434a055a5c4ac8af143ecabf11ebf Mon Sep 17 00:00:00 2001 From: Tim Golen Date: Tue, 21 Jun 2022 09:52:33 -0600 Subject: [PATCH] Get the notification preference for all report types --- src/libs/actions/Report.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index f529931b5c80..99a4543029f7 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -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']);