Skip to content

Commit

Permalink
fix: filter deactivated users when making mention suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
bang9 committed Sep 25, 2023
1 parent 16d76ad commit ee1e9c2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ee1e9c2

Please sign in to comment.