mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-22 10:33:24 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user