Skip to content

Commit

Permalink
Update notification preference when leaving public/private rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Dec 14, 2023
1 parent 2273930 commit ac358ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import CONST from '@src/CONST';
import Beta from '@src/types/onyx/Beta';

function canUseAllBetas(betas: OnyxEntry<Beta[]>): boolean {

Check failure on line 5 in src/libs/Permissions.ts

View workflow job for this annotation

GitHub Actions / lint

'betas' is defined but never used
return !!betas?.includes(CONST.BETAS.ALL);
return true;
}

function canUseChronos(betas: OnyxEntry<Beta[]>): boolean {
Expand Down
1 change: 1 addition & 0 deletions src/libs/actions/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
];
Expand Down

0 comments on commit ac358ef

Please sign in to comment.