Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ function UserSelectionListItem<TItem extends ListItem>({
const userDisplayName = useMemo(() => {
return getDisplayNameForParticipant({
accountID: item.accountID ?? CONST.DEFAULT_NUMBER_ID,
shouldAddCurrentUserPostfix: true,
});
}, [item.accountID]);

Expand Down
1 change: 1 addition & 0 deletions src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Nachricht',
leaveThread: 'Thread verlassen',
you: 'Du',
me: 'mich',
youAfterPreposition: 'du',
your: 'Ihr',
conciergeHelp: 'Bitte wenden Sie sich an Concierge, um Hilfe zu erhalten.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ const translations = {
message: 'Message ',
leaveThread: 'Leave thread',
you: 'You',
me: 'me',
youAfterPreposition: 'you',
your: 'your',
conciergeHelp: 'Please reach out to Concierge for help.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ const translations = {
message: 'Chatear con ',
leaveThread: 'Salir del hilo',
you: 'Tú',
me: 'yo',
youAfterPreposition: 'ti',
your: 'tu',
conciergeHelp: 'Por favor, contacta con Concierge para obtener ayuda.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Message',
leaveThread: 'Quitter le fil de discussion',
you: 'Vous',
me: 'moi',
youAfterPreposition: 'vous',
your: 'votre',
conciergeHelp: "Veuillez contacter Concierge pour obtenir de l'aide.",
Expand Down
1 change: 1 addition & 0 deletions src/languages/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Messaggio',
leaveThread: 'Abbandona discussione',
you: 'Tu',
me: 'me',
youAfterPreposition: 'tu/voi (depending on the context)',
your: 'tuo/tuoi/tuoi/tuo (depending on context and gender/number)',
conciergeHelp: 'Si prega di contattare Concierge per assistenza.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'メッセージ',
leaveThread: 'スレッドを退出',
you: 'あなた',
me: '自分',
youAfterPreposition: 'あなた',
your: 'あなたの',
conciergeHelp: 'ヘルプが必要な場合は、Conciergeに連絡してください。',
Expand Down
1 change: 1 addition & 0 deletions src/languages/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Bericht',
leaveThread: 'Verlaat thread',
you: 'Jij',
me: 'mij',
youAfterPreposition: 'jij',
your: 'uw',
conciergeHelp: 'Neem contact op met Concierge voor hulp.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Wiadomość',
leaveThread: 'Opuść wątek',
you: 'Ty',
me: 'mnie',
youAfterPreposition: 'ty',
your: 'twój',
conciergeHelp: 'Proszę skontaktować się z Concierge po pomoc.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: 'Mensagem',
leaveThread: 'Sair do tópico',
you: 'Você',
me: 'mim',
youAfterPreposition: 'você',
your: 'seu/sua/seus/suas (dependendo do contexto)',
conciergeHelp: 'Por favor, entre em contato com o Concierge para obter ajuda.',
Expand Down
1 change: 1 addition & 0 deletions src/languages/zh-hans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ const translations = {
message: '消息',
leaveThread: '离开线程',
you: '你',
me: '我',
youAfterPreposition: '你',
your: '你的',
conciergeHelp: '请联系Concierge寻求帮助。',
Expand Down
7 changes: 5 additions & 2 deletions src/libs/OptionsListUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2395,11 +2395,14 @@ function getFirstKeyForList(data?: Option[] | null) {
}

function getPersonalDetailSearchTerms(item: Partial<OptionData>) {
if (item.accountID === currentUserAccountID) {
return getCurrentUserSearchTerms(item);
}
return [item.participantsList?.[0]?.displayName ?? '', item.login ?? '', item.login?.replace(CONST.EMAIL_SEARCH_REGEX, '') ?? ''];
}

function getCurrentUserSearchTerms(item: OptionData) {
return [item.text ?? '', item.login ?? '', item.login?.replace(CONST.EMAIL_SEARCH_REGEX, '') ?? ''];
function getCurrentUserSearchTerms(item: Partial<OptionData>) {
return [item.text ?? '', item.login ?? '', item.login?.replace(CONST.EMAIL_SEARCH_REGEX, '') ?? '', translateLocal('common.you'), translateLocal('common.me')];
}

/**
Expand Down