From 1b07cbdbaf3fb801090bbc782fe37ce9a473ce9a Mon Sep 17 00:00:00 2001 From: Abhinav Raut Date: Mon, 5 Jan 2026 15:09:44 +0530 Subject: [PATCH] feat: increase suggestion limit from 10 to 25 for mentions - update mentions query for clarity as distinct is not required --- frontend/src/features/conversation/ReplyBoxContent.vue | 2 +- internal/conversation/conversation.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/conversation/ReplyBoxContent.vue b/frontend/src/features/conversation/ReplyBoxContent.vue index 909e0eaf..05768495 100644 --- a/frontend/src/features/conversation/ReplyBoxContent.vue +++ b/frontend/src/features/conversation/ReplyBoxContent.vue @@ -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 diff --git a/internal/conversation/conversation.go b/internal/conversation/conversation.go index 312ce8d2..9b8d9bfb 100644 --- a/internal/conversation/conversation.go +++ b/internal/conversation/conversation.go @@ -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(