feat: 修改对话 ID 对话名称 对话头像

* 仅群组
This commit is contained in:
CrescentLeaf
2025-10-24 22:00:22 +08:00
parent 4807038619
commit bc7b932c5c
6 changed files with 101 additions and 7 deletions

View File

@@ -200,10 +200,8 @@ export default class Chat {
return null
}
getId() {
return this.bean.id
}
setId(id: string) {
if (this.bean.id == id) return
if (Chat.findAllChatBeansByCondition('id = ?', id).length > 0)
throw new DataWrongError(`对话ID ${id} 已被使用`)
this.setAttr("id", id)