From ac358ef08f71c6d77c3464c0ab756047793d0202 Mon Sep 17 00:00:00 2001 From: Blazej Kustra Date: Thu, 14 Dec 2023 12:06:47 +0100 Subject: [PATCH] Update notification preference when leaving public/private rooms --- src/libs/Permissions.ts | 2 +- src/libs/actions/Report.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 9cde613ebb5a..239d790581ba 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -3,7 +3,7 @@ import CONST from '@src/CONST'; import Beta from '@src/types/onyx/Beta'; function canUseAllBetas(betas: OnyxEntry): boolean { - return !!betas?.includes(CONST.BETAS.ALL); + return true; } function canUseChronos(betas: OnyxEntry): boolean { diff --git a/src/libs/actions/Report.ts b/src/libs/actions/Report.ts index 0c5d2fd0d746..9977693896ee 100644 --- a/src/libs/actions/Report.ts +++ b/src/libs/actions/Report.ts @@ -2065,6 +2065,7 @@ function leaveRoom(reportID: string, isWorkspaceMemberLeavingWorkspaceRoom = fal reportID: null, stateNum: CONST.REPORT.STATE_NUM.SUBMITTED, statusNum: CONST.REPORT.STATUS.CLOSED, + notificationPreference: CONST.REPORT.NOTIFICATION_PREFERENCE.HIDDEN, }, }, ];