fix(chat): correct apiEndpoint routing for direct messages in ChatItem

This commit is contained in:
Chneemann 2026-09-05 15:35:32 +02:00
parent f312316400
commit 441a6c4453
No known key found for this signature in database

View file

@ -95,8 +95,9 @@ export function ChatItem({
}, },
); );
// Dynamischen Endpunkt basierend auf Chat-Typ bestimmen // Determine the dynamic endpoint based on the chat type
const apiEndpoint = isDirect const apiEndpoint =
isDirect === "dm"
? `/api/dm/messages/${message.id}` ? `/api/dm/messages/${message.id}`
: `/api/messages/${message.id}`; : `/api/messages/${message.id}`;