mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
6ff6d57507
commit
7fa60dd63e
1 changed files with 5 additions and 0 deletions
|
|
@ -65,6 +65,11 @@
|
|||
if (type === 'message') {
|
||||
console.log('message', data);
|
||||
messages = [data, ...messages];
|
||||
|
||||
if (typingUsers.find((user) => user.id === event.user.id)) {
|
||||
typingUsers = typingUsers.filter((user) => user.id !== event.user.id);
|
||||
}
|
||||
|
||||
await tick();
|
||||
if (scrollEnd) {
|
||||
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
|
||||
|
|
|
|||
Loading…
Reference in a new issue