修复聊天室滚屏开关失效

This commit is contained in:
pllx
2026-04-30 15:19:38 +08:00
parent 8c7b1086ff
commit b21f583fe5
6 changed files with 70 additions and 10 deletions
@@ -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);
}
/**