Skip to content

Commit

Permalink
Merge pull request Expensify#32331 from tienifr/fix/28997
Browse files Browse the repository at this point in the history
Fix: Undefined displayed in header when opening left thread in offline mode
  • Loading branch information
nkuoch authored Dec 6, 2023
2 parents 7439a3d + baf668f commit 2e8cfdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3858,7 +3858,7 @@ function getWhisperDisplayNames(participantAccountIDs?: number[]): string | unde
* Show subscript on workspace chats / threads and expense requests
*/
function shouldReportShowSubscript(report: OnyxEntry<Report>): boolean {
if (isArchivedRoom(report)) {
if (isArchivedRoom(report) && !isWorkspaceThread(report)) {
return false;
}

Expand Down
5 changes: 5 additions & 0 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,11 @@ function leaveRoom(reportID, isWorkspaceMemberLeavingWorkspaceRoom = false) {
value: {
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
statusNum: CONST.REPORT.STATUS.CLOSED,
chatType: report.chatType,
parentReportID: report.parentReportID,
parentReportActionID: report.parentReportActionID,
policyID: report.policyID,
type: report.type,
},
},
];
Expand Down

0 comments on commit 2e8cfdb

Please sign in to comment.