From 2ffd424cc1fb65a9cc9907d4bc3f5b370c2f0111 Mon Sep 17 00:00:00 2001 From: "Shridhar Goel (via MelvinBot)" Date: Tue, 5 May 2026 05:31:01 +0000 Subject: [PATCH] Exclude group chats from hidden report filter in search Group chats were incorrectly filtered out of search results because participant-level notificationPreference is often undefined for group chats, and isHiddenForCurrentUser treats undefined as hidden. Adding GROUP to the chatType exclusion list alongside SELF_DM and POLICY_ADMINS prevents this false filtering. Co-authored-by: Shridhar Goel --- src/libs/OptionsListUtils/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 9c0ea5e892a2..64477eb39d8d 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -2518,6 +2518,7 @@ function getValidOptions( !report.isThread && report.item?.chatType !== CONST.REPORT.CHAT_TYPE.SELF_DM && report.item?.chatType !== CONST.REPORT.CHAT_TYPE.POLICY_ADMINS && + report.item?.chatType !== CONST.REPORT.CHAT_TYPE.GROUP && !report.private_isArchived ) { const participant = report.item?.participants?.[currentUserAccountID];