Skip to content

Commit 45fd6b6

Browse files
committed
fix: Account owner's name is missing in type:chat from: suggestions
1 parent 4d7d44a commit 45fd6b6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/Search/SearchAutocompleteList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ function SearchAutocompleteList(
346346
case CONST.SEARCH.SYNTAX_FILTER_KEYS.FROM:
347347
case CONST.SEARCH.SYNTAX_FILTER_KEYS.PAYER:
348348
case CONST.SEARCH.SYNTAX_FILTER_KEYS.EXPORTER: {
349-
const participants = getSearchOptions(options, betas ?? [], true, true, autocompleteValue, 10, false, false).personalDetails.filter(
349+
const participants = getSearchOptions(options, betas ?? [], true, true, autocompleteValue, 10, false, false, true).personalDetails.filter(
350350
(participant) => participant.text && !alreadyAutocompletedKeys.includes(participant.text.toLowerCase()),
351351
);
352352

src/libs/OptionsListUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2073,6 +2073,7 @@ function getSearchOptions(
20732073
maxResults?: number,
20742074
includeUserToInvite?: boolean,
20752075
includeRecentReports = true,
2076+
includeCurrentUser?: boolean
20762077
): Options {
20772078
Timing.start(CONST.TIMING.LOAD_SEARCH_OPTIONS);
20782079
Performance.markStart(CONST.TIMING.LOAD_SEARCH_OPTIONS);
@@ -2091,6 +2092,7 @@ function getSearchOptions(
20912092
shouldBoldTitleByDefault: !isUsedInChatFinder,
20922093
excludeHiddenThreads: true,
20932094
maxElements: maxResults,
2095+
includeCurrentUser,
20942096
searchString: searchQuery,
20952097
includeUserToInvite,
20962098
});

0 commit comments

Comments
 (0)