From ee1e9c24683cb93430a4b242a6bc667140c3fc27 Mon Sep 17 00:00:00 2001 From: bang9 Date: Mon, 25 Sep 2023 17:52:36 +0900 Subject: [PATCH] fix: filter deactivated users when making mention suggestions --- packages/uikit-react-native/src/hooks/useMentionSuggestion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/uikit-react-native/src/hooks/useMentionSuggestion.ts b/packages/uikit-react-native/src/hooks/useMentionSuggestion.ts index e8d2cefd2..307668626 100644 --- a/packages/uikit-react-native/src/hooks/useMentionSuggestion.ts +++ b/packages/uikit-react-native/src/hooks/useMentionSuggestion.ts @@ -93,7 +93,8 @@ const useMentionSuggestion = (params: { .filter( (member) => member.nickname?.toLowerCase().startsWith(searchString.toLowerCase()) && - member.userId !== currentUser?.userId, + member.userId !== currentUser?.userId && + member.isActive, ) .slice(0, mentionManager.config.suggestionLimit); }