Skip to content

[#3114] 新建群聊能起名、重名当场拒绝(+ 面板) #3196

Closed

Description

@Birfy

Written-by: Chief

#3114 第十四刀:+ 面板新建群聊时能起群名,并且重名当场拒绝(不再等到宿主抛英文原句)。

规格:#3114 评论 6996456549(2026-11-19T01:05Z,基线 main 0f7e8212)。

今天的样子

  • 设置 → 群聊里的新建表单早就能起名(group-settings.js L363–365),但 + → New group chat(new-chat.js)没有名字字段,createRoom 只带 { admin, participants? }。
  • 重名时 + 面板把宿主原句 Another group chat is already called "X" 直接贴出来(new-chat.js L57),而 i18n.js 里早有对应的中文键。
  • create-bot.js 有名字兜底、重名判定与 Create 禁用三件事,群聊两处入口都没有。

范围

11 个文件(手写 6 + 生成 5),手写 +71/−8;T1(core/src/client/** + core/test/** + docs/**,非生成 79 行 / 6 文件,远低于 limits.T1 的 400/20)。

  • host 一行不动:create-room 早就收 name,重名与截断都由 roster.createRoom 负责。
  • 空名不送 key(宿主按成员取名);重名时 Create 禁用并显示中文注;未知宿主句走 hostText 兜底。
  • 新键只有一条:A group chat named {name} already exists。

不做

不改 settings.js 的 run(设置页那句仍是英文原句,已知、另开);不改 host;不做 grant_request(在 Birfy/bot-social);不做定时任务时区选区。

Part of #3114

Activity

  1. added a commit that references this issue on Nov 19, 2026
    4b1c37b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions