v0.3.7 @mentions lookup fix

This commit is contained in:
2026-03-09 22:53:08 -04:00
parent 08d57309ae
commit 27bee43f89
7 changed files with 35 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "jama-frontend",
"version": "0.3.6",
"version": "0.3.7",
"private": true,
"scripts": {
"dev": "vite",

View File

@@ -105,7 +105,7 @@ export default function MessageInput({ group, replyTo, onCancelReply, onSend, on
mentionStart.current = lastAt;
setMentionSearch(between);
setShowMention(true);
api.searchUsers(between).then(({ users }) => {
api.searchUsers(between, group?.id).then(({ users }) => {
setMentionResults(users);
setMentionIndex(0);
}).catch(() => {});

View File

@@ -53,7 +53,7 @@ export const api = {
// Users
getUsers: () => req('GET', '/users'),
searchUsers: (q) => req('GET', `/users/search?q=${encodeURIComponent(q)}`),
searchUsers: (q, groupId) => req('GET', `/users/search?q=${encodeURIComponent(q)}${groupId ? `&groupId=${groupId}` : ''}`),
createUser: (body) => req('POST', '/users', body),
bulkUsers: (users) => req('POST', '/users/bulk', { users }),
updateName: (id, name) => req('PATCH', `/users/${id}/name`, { name }),