mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-07 08:27:05 +00:00
feat: add chat:message:favorite event for action functions (#20375)
* feat: add chat:message:favorite event for action functions * Update Chat.svelte * Update Chat.svelte
This commit is contained in:
parent
00af37bb4e
commit
9c5773d0af
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,9 @@
|
|||
if (autoScroll) {
|
||||
scrollToBottom('smooth');
|
||||
}
|
||||
} else if (type === 'chat:message:favorite') {
|
||||
// Update message favorite status
|
||||
message.favorite = data.favorite;
|
||||
} else if (type === 'chat:title') {
|
||||
chatTitle.set(data);
|
||||
currentChatPage.set(1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue