群系统事件消息改为居中纯文本渲染,不再走普通气泡+作者名的展示逻辑
根因:群里的系统事件消息(成员加入、角色变更、公告发布等,x-im-type=system_action/ system_notice)服务端并不带真实的 `from`,但 messages-view.jsx 一直把它们和普通消息 一样交给 ChatMessage 渲染——chat-message.jsx 的 fullDisplay 逻辑会在气泡下方额外画一行 发送者名字,解析不到发送者时回退显示"未找到"。对照参考图 内容沟通对话3-开启进群验证与 拉人状态.png,这类系统事件应该是居中的纯灰字提示,不带头像、不带气泡、不带作者名——现状 既不符合参考图,也让"未找到"这种内部占位文案暴露给了用户。 怎么修:meta-message.jsx 新增 systemText 分支,复用日期分隔条同一套"居中提示"视觉语言 (.meta .bubble.system,无背景、纯居中灰字);messages-view.jsx 在消息渲染分支里识别 system_action/system_notice 且不带可操作按钮(group_invitation_created 那种带 "立即加入"按钮的除外,仍走完整气泡展示)的消息,改为渲染 MetaMessage 而不是 ChatMessage。 验证:用真实群(3 个真实账号)走了两遍"扫码申请入群→通过审批",会话里"有成员通过审批 加入了群聊。"正确显示为居中灰字,不再出现气泡、头像和"未找到"作者名;带按钮的 group_invitation_created 消息不受影响,仍是完整气泡+"立即加入"按钮。 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
e53af93409
commit
e6e51f625e
@@ -4391,9 +4391,15 @@ button.full-screen .material-icons {
|
||||
width: 10rem;
|
||||
height: 10rem;
|
||||
z-index: 2;
|
||||
/* Draggable while in a fullscreen connected video call (call-panel.jsx's dragStart); the grab
|
||||
cursor is the only hint of that before a viewer ever tries, since unlike the minimized bubble
|
||||
there's no other affordance. Not shown while [disabled] (audio-only calls / minimized, where
|
||||
dragging this box does nothing -- see call-panel.jsx). */
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.call-party.self[disabled] {
|
||||
cursor: unset;
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user