refactor: 重寫 Chat 成員邏輯

* 不再區分 user_a/b, 直接使用 members_list 雙成員模式
* 爲以後群聊打下基礎
This commit is contained in:
CrescentLeaf
2025-09-22 23:08:19 +08:00
parent 184a80436d
commit 10da3b8e77
3 changed files with 34 additions and 16 deletions

View File

@@ -1,10 +1,11 @@
import ChatType from "./ChatType.ts"
export default class ChatBean {
declare type: "private" | "group"
declare type: ChatType
declare id: string
declare title?: string
declare avatar_file_hash?: string
declare user_a_id?: string
declare user_b_id?: string
declare members_list: string
declare settings: string
[key: string]: unknown