From be7e10a58f95635527edaae2681a9b034d686048 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Thu, 9 Oct 2025 14:51:02 +0700 Subject: [PATCH 1/3] fix: Self DM does not show up in the result --- src/libs/OptionsListUtils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 779573b172a3..856b0b14dc0c 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -2389,7 +2389,7 @@ function filterSelfDMChat(report: SearchOptionData, searchTerms: string[]): Sear } // Remove duplicate values and check if the term matches any value - return uniqFast(values).some((value) => value.includes(term)); + return uniqFast(values).map((val) => val.toLocaleLowerCase()).some((value) => value.includes(term)); }); return isMatch ? report : undefined; From c05d928d00b87c1b659b313a518236d4ae63ce13 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Thu, 9 Oct 2025 15:58:43 +0700 Subject: [PATCH 2/3] fix prettier --- src/libs/OptionsListUtils/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index 856b0b14dc0c..b4ae0368001b 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -2389,7 +2389,9 @@ function filterSelfDMChat(report: SearchOptionData, searchTerms: string[]): Sear } // Remove duplicate values and check if the term matches any value - return uniqFast(values).map((val) => val.toLocaleLowerCase()).some((value) => value.includes(term)); + return uniqFast(values) + .map((val) => val.toLocaleLowerCase()) + .some((value) => value.includes(term)); }); return isMatch ? report : undefined; From 3d376c935c610d4e4250c364e28d8715f1883b40 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Fri, 10 Oct 2025 01:17:06 +0700 Subject: [PATCH 3/3] fix test --- src/libs/OptionsListUtils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/OptionsListUtils/index.ts b/src/libs/OptionsListUtils/index.ts index b4ae0368001b..f107280c36d2 100644 --- a/src/libs/OptionsListUtils/index.ts +++ b/src/libs/OptionsListUtils/index.ts @@ -2391,7 +2391,7 @@ function filterSelfDMChat(report: SearchOptionData, searchTerms: string[]): Sear // Remove duplicate values and check if the term matches any value return uniqFast(values) .map((val) => val.toLocaleLowerCase()) - .some((value) => value.includes(term)); + .some((value) => value.includes(term.toLocaleLowerCase())); }); return isMatch ? report : undefined;