Skip to content

Commit

Permalink
Merge pull request #35044 from kubabutkiewicz/fix-reggersion-with-mis…
Browse files Browse the repository at this point in the history
…sing-room-name

[CP Staging] Fix reggression after LHNOptionsList TS migration

(cherry picked from commit 26af6d1)
  • Loading branch information
mountiny authored and OSBotify committed Jan 24, 2024
1 parent 047a52f commit adf594e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LHNOptionsList/OptionRowLHN.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function OptionRowLHN({reportID, isFocused = false, onSelectRow = () => {}, opti
const report = ReportUtils.getReport(optionItem.reportID ?? '');
const isStatusVisible = !!emojiCode && ReportUtils.isOneOnOneChat(!isEmptyObject(report) ? report : null);

const isGroupChat = optionItem.type === CONST.REPORT.TYPE.CHAT && optionItem.chatType && !optionItem.isThread && (optionItem.displayNamesWithTooltips?.length ?? 0) > 2;
const isGroupChat = optionItem.type === CONST.REPORT.TYPE.CHAT && !optionItem.chatType && !optionItem.isThread && (optionItem.displayNamesWithTooltips?.length ?? 0) > 2;
const fullTitle = isGroupChat ? getGroupChatName(!isEmptyObject(report) ? report : null) : optionItem.text;

const subscriptAvatarBorderColor = isFocused ? focusedBackgroundColor : theme.sidebar;
Expand Down

0 comments on commit adf594e

Please sign in to comment.