feat: 查看自己所有的对话

This commit is contained in:
CrescentLeaf
2025-11-23 12:32:59 +08:00
parent 98132eb67c
commit 59191cc42e
9 changed files with 224 additions and 3 deletions

View File

@@ -15,6 +15,7 @@ import Chat from "./Chat.ts"
import ChatBean from "./ChatBean.ts"
import MapJson from "../MapJson.ts"
import DataWrongError from '../api/DataWrongError.ts'
import UserChatLinker from "./UserChatLinker.ts";
type UserBeanKey = keyof UserBean
@@ -155,6 +156,9 @@ export default class User {
return []
}
}
getAllChatsList() {
return UserChatLinker.getUserChats(this.bean.id)
}
getNickName(): string {
return this.bean.nickname
}