refactor(chat): remove legacy screen visibility events and use absolute state refs
- Remove ChatScreenVisible and ChatScreenInvisible events from chat state machine - Remove legacy ChatInit event handler - Migrate state transitions to use absolute references (#chat.guestSession, #chat.userSession, #chat.idle) - Adjust legal text wording for Cozsweet privacy agreement
This commit is contained in:
@@ -18,8 +18,6 @@
|
||||
export type ChatEvent =
|
||||
// 内部 UI 事件
|
||||
| { type: "ChatInit" }
|
||||
| { type: "ChatScreenVisible" }
|
||||
| { type: "ChatScreenInvisible" }
|
||||
// 鉴权生命周期(**用户**显式触发登录后由 chat-screen 派)
|
||||
| { type: "ChatGuestLogin" }
|
||||
| { type: "ChatNonGuestLogin"; token: string }
|
||||
|
||||
Reference in New Issue
Block a user