Fix setting chat session title from Desktop app

Pass auth headers to not have the chat session title update request fail
This commit is contained in:
Debanjum Singh Solanky 2024-03-15 13:06:08 +05:30
parent c9e05dc184
commit c792fa819f

View file

@ -918,7 +918,7 @@
let newTitle = conversationTitleInput.value;
if (newTitle != null) {
let editURL = `/api/chat/title?client=web&conversation_id=${incomingConversationId}&title=${newTitle}`;
fetch(`${hostURL}${editURL}` , { method: "PATCH" })
fetch(`${hostURL}${editURL}` , { method: "PATCH", headers })
.then(response => response.ok ? response.json() : Promise.reject(response))
.then(data => {
conversationButton.textContent = newTitle;