feat: increase suggestion limit from 10 to 25 for mentions

- update mentions query for clarity as distinct is not required
This commit is contained in:
Abhinav Raut
2026-01-05 15:09:44 +05:30
parent b0ec53d0d1
commit 1b07cbdbaf
2 changed files with 2 additions and 2 deletions
@@ -193,7 +193,7 @@ const getSuggestions = async (query) => {
emoji: t.emoji
}))
return [...users, ...teams].slice(0, 10)
return [...users, ...teams].slice(0, 25)
}
// Handle mentions changed from editor
+1 -1
View File
@@ -1294,7 +1294,7 @@ func (c *Manager) makeConversationsListQuery(viewingUserID, userID int, teamIDs
case models.MentionedConversations:
// Filter to only conversations where user is mentioned (directly or via team)
conditions = append(conditions, `conversations.id IN (
SELECT DISTINCT cm.conversation_id
SELECT cm.conversation_id
FROM conversation_mentions cm
WHERE cm.mentioned_user_id = $1
OR EXISTS(