fix: 添加了新的字段代替 chat id

* 谁又能想到 chat id 的可变性和依赖性恰恰埋下了祸患呢
This commit is contained in:
CrescentLeaf
2025-10-24 22:21:28 +08:00
parent afd9193dea
commit 2d78e39ca1
9 changed files with 49 additions and 38 deletions

View File

@@ -40,7 +40,7 @@ export default class ChatGroup extends Chat {
return new ChatGroup(chat.bean)
}
static createGroup(chatId?: string) {
return this.create(chatId || crypto.randomUUID(), 'group')
static createGroup(group_name?: string) {
return this.create(group_name, 'group')
}
}