新增聊天室状态与功能快捷菜单

This commit is contained in:
2026-04-24 21:17:44 +08:00
parent d7ec42a025
commit 0f0bfef2a8
18 changed files with 1361 additions and 124 deletions
+7
View File
@@ -243,6 +243,13 @@ export function initChat(roomId) {
new CustomEvent("chat:screen-cleared", { detail: e }),
);
})
// 监听用户状态变更,实时刷新右侧在线名单。
.listen("UserStatusUpdated", (e) => {
console.log("用户状态更新:", e);
window.dispatchEvent(
new CustomEvent("chat:user-status-updated", { detail: e }),
);
})
// 监听站长触发的全员刷新
.listen("BrowserRefreshRequested", (e) => {
console.log("全员刷新:", e);