From 5d8a948bb5b99a2fc57978f5e621b4f44ec40e92 Mon Sep 17 00:00:00 2001 From: sahil Date: Sun, 13 Feb 2022 18:50:41 +0530 Subject: [PATCH] show current user in members --- src/libs/actions/Report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index 1ec091423f34..b0128ef211e8 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -121,9 +121,9 @@ function getUnreadActionCount(report) { * @param {Object} report * @return {String[]} */ -function getParticipantEmailsFromReport({sharedReportList}) { +function getParticipantEmailsFromReport({sharedReportList, reportNameValuePairs}) { const emailArray = _.map(sharedReportList, participant => participant.email); - return _.without(emailArray, currentUserEmail); + return ReportUtils.isChatRoom(reportNameValuePairs) ? emailArray : _.without(emailArray, currentUserEmail); } /**