From 3e8879245b962dd0305ffd79d34e7625f61c6929 Mon Sep 17 00:00:00 2001 From: "dmitrii.pichenikin" Date: Fri, 13 Mar 2026 15:28:48 +0300 Subject: [PATCH] LP-5676: fixed the ability to add a user to a shared channel --- webapp/src/components/user_multi_select/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/user_multi_select/index.tsx b/webapp/src/components/user_multi_select/index.tsx index 50a85f8..7d6a65d 100644 --- a/webapp/src/components/user_multi_select/index.tsx +++ b/webapp/src/components/user_multi_select/index.tsx @@ -102,7 +102,7 @@ const UserMultiSelect: React.FC = ({value, onChange, placeholder, disable setLoading(true); try { const data = await Client4.autocompleteUsers(term, '', '', {limit: 20}); - setResults(data.users.filter((u: UserProfile) => !excluded.has(u.username))); + setResults(data.users.filter((u) => !excluded.has(u.username) && !(u as UserProfile & {remote_id?: string}).remote_id)); } catch { setResults([]); } finally { @@ -110,7 +110,7 @@ const UserMultiSelect: React.FC = ({value, onChange, placeholder, disable } }; - const doSearch = useMemo(() => debounce(performSearch, 400), []); // eslint-disable-line react-hooks/exhaustive-deps + const doSearch = useMemo(() => debounce(performSearch, 400), []); const handleInputChange = (e: React.ChangeEvent) => { const term = e.target.value;