HomePhabricator
Diffusion Comm 38225b76efee

[lib] Utils for typeahead mentions

Description

[lib] Utils for typeahead mentions

Summary:
Preparation for typeahead user suggestions feature.
Utilities: - function getTypeaheadUserSuggestions() used to filter out users from current thread based on already typed prefix.

Also added stringForUserExplicit(), because when we use @-ing and we @ ourselves, we want to use our name, not "you",
e.g. I'd type: @przemek, instead od @you, which feels weird.

Test Plan:
This is not called anywhere yet.
I runned web app and it still works the same.
Checked visibility of functions.

Reviewers: tomek, kamil, atul

Reviewed By: tomek

Subscribers: ashoat, abosh, atul, kamil, tomek

Differential Revision: https://phab.comm.dev/D5532

Details

Provenance
przemekAuthored on Nov 4 2022, 4:11 AM
Reviewer
tomek
Differential Revision
D5532: [lib] Utils for typeahead mentions
Parents
rCOMMf78e5b5d9e81: [native] Introduce `LoggedOutStaffInfo` and display in `LoggedOutModal`
Branches
Unknown
Tags
Unknown