composebox_typeahead: Move wildcard string to secondary in @-mention.

Earlier, in typeahead suggestions for wildcard mention, we rendered
wildcard string as primary text inside parentheses.

This commit separates the wildcard string as secondary_text to
be rendered without parentheses using styles like channel description.

Fixes: zulip#31245.
This commit is contained in:
Pratik Chanda
2024-08-26 22:24:44 +05:30
committed by Tim Abbott
parent c84ff59dc9
commit 967243b2db
4 changed files with 18 additions and 8 deletions

View File

@@ -33,6 +33,7 @@ export type SenderInfo = User & {
export type PseudoMentionUser = {
special_item_text: string;
email: string;
secondary_text: string;
pm_recipient_count: number;
full_name: string;
idx: number;