Skip to content

Commit bd5a3e2

Browse files
committed
Replace gRNVPs() with a flag
1 parent f80f9b4 commit bd5a3e2

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8928,12 +8928,10 @@ function getRoom(type: ValueOf<typeof CONST.REPORT.CHAT_TYPE>, policyID: string)
89288928
/**
89298929
* We only want policy members who are members of the report to be able to modify the report description, but not in thread chat.
89308930
*/
8931-
function canEditReportDescription(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>): boolean {
8931+
function canEditReportDescription(report: OnyxEntry<Report>, policy: OnyxEntry<Policy>, isReportArchived = false): boolean {
89328932
return (
89338933
!isMoneyRequestReport(report) &&
8934-
// This will get removed as part of https://github.com/Expensify/App/issues/59961
8935-
// eslint-disable-next-line deprecation/deprecation
8936-
!isArchivedReport(getReportNameValuePairs(report?.reportID)) &&
8934+
!isReportArchived &&
89378935
isChatRoom(report) &&
89388936
!isChatThread(report) &&
89398937
!isEmpty(policy) &&

0 commit comments

Comments
 (0)