mirror of
https://github.com/open-webui/open-webui.git
synced 2025-04-04 01:49:13 +02:00
refac
This commit is contained in:
parent
6ff6d57507
commit
7fa60dd63e
@ -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…
x
Reference in New Issue
Block a user