Autocomplete: minor refactor
Summary:
Do the same in less code.
Implement this small tip:
https://we.phorge.it/D26681#43044
Ref T16334
Test Plan:
Same test plan as D26681.
Share a comment in Maniphest Task pinging somebody. Still works.
Do the same with somebody subscribed. Still works and the subscribed has priority.
Share a comment in Differential Diff (which does not support this feature) pinging somebody.
Still works.
Reviewers: O1 Blessed Committers, aklapper
Reviewed By: O1 Blessed Committers, aklapper
Subscribers: aklapper, tobiaswiese, Matthew, Cigaryno
Maniphest Tasks: T16334
Differential Revision: https://we.phorge.it/D26705