修复聊天室滚屏开关失效
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// 聊天室任命/撤销公告监听,负责渲染大卡片和频道内系统提示。
|
||||
|
||||
import { escapeHtml } from "./html.js";
|
||||
import { isAutoScrollEnabled, scrollChatToBottom } from "./message-utils.js";
|
||||
|
||||
const APPOINTMENT_PHRASES = [
|
||||
"望再接再厉,大展宏图,为大家服务!",
|
||||
@@ -132,7 +133,7 @@ function appendAppointmentMessage(container, message) {
|
||||
}
|
||||
|
||||
container.appendChild(message);
|
||||
container.scrollTop = container.scrollHeight;
|
||||
scrollChatToBottom(container, isAutoScrollEnabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user