Sam 3bf5692c72
FEATURE: prioritize group search order based on prefix match (#16093)
Our @mention user search prioritized users based on prefix matches.

So if searching for `sa` we will display `sam`, `asam` in that order

Previously, we did not prioritize group matches based on prefix. This change ensures better parity.

Implementation notes:

1. User search only prioritizes based on username prefix, not name prefix. TBD if we want to change that.
2. @mention on client side will show 0 group matches if we fill up all the spots with user matches. TBD if we want to unconditionally show the first / second group match.

Co-authored-by: Alan Guo Xiang Tan <gxtan1990@gmail.com>
2022-03-03 16:57:52 +11:00
..
2020-04-28 15:59:39 +05:30
2019-11-29 15:49:08 +00:00
2019-10-21 12:08:20 +01:00
2020-05-05 13:46:57 +10:00
2021-12-02 22:41:55 +05:30
2022-02-28 10:20:58 +08:00
2019-10-17 16:58:22 +11:00