优化消息列表组件,增加加载状态的视觉反馈,支持根据微信号进行会话筛选,并重构相关逻辑以提升用户体验和代码可读性。

This commit is contained in:
2025-11-28 15:33:32 +08:00
parent 5c7940538d
commit ce47856c81
11 changed files with 226 additions and 80 deletions

View File

@@ -157,7 +157,7 @@ const messageHandlers: Record<string, MessageHandler> = {
CmdNotify: async (message: WebSocketMessage) => {
console.log("通知消息", message);
// 在这里添加具体的处理逻辑
if (message.notify == "Auth failed") {
if (["Auth failed", "Kicked out"].includes(message.notify)) {
// 避免重复弹窗
if ((window as any).__CKB_AUTH_FAILED_SHOWN__) {
return;