Skip to content

Commit

Permalink
Only support @mention of users in message search (#5058)
Browse files Browse the repository at this point in the history
  • Loading branch information
megrogan authored Dec 20, 2023
1 parent 6bdccae commit 6579db1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
console.log(
`all matches: ${matches.length}, topScore: ${topScore}, bottomScore: ${
matches[matches.length - 1].score
}`
}`,
);
matches = matches
// Only show matches > than 20% of the top scoring match
Expand Down Expand Up @@ -242,9 +242,10 @@
offset={searchBoxHeight ?? 80}
direction={"down"}
prefix={mentionPrefix}
mentionSelf
usersOnly
on:close={cancelMention}
on:mention={mention}
mentionSelf />
on:mention={mention} />
{/if}

<SectionHeader shadow flush entry bind:height={searchBoxHeight}>
Expand Down

0 comments on commit 6579db1

Please sign in to comment.