# 私信应显示回复小部件

**URL:** https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293
**Category:** Feature
**Tags:** pr-welcome, whispers
**Created:** [2020年五月4日 07:44 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293 "2020-05-04T07:44:59Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2020年五月4日 07:44 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/1 "2020-05-04T07:44:59Z")

</div>

Whisper 帖子在右上角显示回复对象，但在左下角未显示回复列表组件。

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/f/2ff8f4d04f9c9296de8391712e3eaccfa1064b75.png)

这是有意设计还是疏忽？

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年五月4日 21:01 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/2 "2020-05-04T21:01:17Z")

</div>

按设计如此，因为它们是密语。

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2020年五月4日 21:27 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/3 "2020-05-04T21:27:12Z")

</div>

但由于私信可以回复并显示原始消息，那么是否允许工作人员通过浏览回复来更轻松地跟进对话，这样不是更有意义吗？

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2020年五月5日 06:48 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/4 "2020-05-05T06:48:07Z")

</div>

为明确起见，我的意思并非原始帖子应显示“显示回复”小部件（因为普通用户无法看到它），而是指_对其他悄悄话的回复_应显示该小部件。例如：

- 用户A 发布 1
- 工作人员1 悄悄话 1
- 用户B 发布
- 用户C 发布
- 工作人员2 悄悄话 2（回复悄悄话 1）
- 用户D 发布
- 工作人员3 悄悄话 3（回复悄悄话 1）

工作人员3 应能看出悄悄话 1 已在悄悄话 2 中得到了回复（若不查看所有消息，这一点可能并不明显）。

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [2020年五月6日 15:44 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/5 "2020-05-06T15:44:33Z")

</div>

我的意思是，也许吧，你怎么看 @sam？如果这是个简单的改动，我支持；如果不是，我反对。

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2020年五月8日 07:56 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/6 "2020-05-08T07:56:47Z")

</div>

修改起来相当复杂，可能需要我一两个小时来找出所有边界情况。我们不想让非密语帖子泄露密语的存在，因此只能在非常特定的情况下更新此信息。

添加 #pr-welcome 标签的前提是：该更改经过仔细测试，确保不会泄露密语的存在，且不会带来性能问题。

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2020年五月13日 11:48 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/7 "2020-05-13T11:48:07Z")

</div>

嗨，Sam，谢谢提醒。

我原以为后端已经处理好了，前端只需要添加一个按钮就行。

我们大量使用“悄悄话”功能，但目前很难知道谁回复了什么，导致多名工作人员在不知情的情况下对同一问题重复回复。

因此，我可能会在某个时候花时间来实现这个功能。如果你能给我一些指引（应该从哪些文件开始），或者告诉我可能有哪些边缘情况，我将不胜感激。

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2020年五月14日 19:15 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/8 "2020-05-14T19:15:54Z")

</div>

另外，我注意到一个疑似错误。

### 复现步骤

1. 用户1 发布帖子 1
2. 工作人员1 回复帖子 1，发布帖子 2
3. 工作人员1 回复帖子 1，发送私信 1 并 @提及 工作人员2
4. 工作人员2 回复私信 1，发送私信 2
5. 工作人员3 回复私信 2，发送私信 3
6. 工作人员1 点击帖子 1 的“显示回复”小部件

### 预期行为

帖子 2 可见，且仅私信 1 可见，并以私信格式显示（浅灰色斜体）。

### 当前行为

帖子 2 可见，且私信 1、2 和 3 均可见，格式与普通帖子相同（但用户1 只能看到帖子 2）。

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2022年二月2日 15:37 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/9 "2022-02-02T15:37:22Z")

</div>

嗨 Sam，

我不知道你是否改变了主意，但我最近注意到一个令人惊讶的新行为：

1. 当管理员回复之前的悄悄话时，`show-replies` 小部件会显示出来，这正是我所期望的：

 ![CleanShot 2022-02-02 at 16.31.23@2x](https://global.discourse-cdn.com/meta/original/3X/7/6/764c541aa130fc2d75dece55efce3c8769572d66.jpeg)

1. 但是，当你重新加载页面时，该小部件不再可见。

 ![CleanShot 2022-02-02 at 16.36.40@2x](https://global.discourse-cdn.com/meta/original/3X/5/b/5beb8d456bdbcf0a95c80fbb3993b3353968b66e.jpeg)

---

<div class="post-metadata">

### Author: ![Nacho\_Caballero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nacho_caballero/32/130189_2.png) [@Nacho\_Caballero](https://meta.discourse.org/u/Nacho_Caballero)
#### Post date: [2022年二月9日 16:52 UTC](https://meta.discourse.org/t/whispers-should-show-the-show-replies-widget/150293/10 "2022-02-09T16:52:44Z")

</div>

我发现的另一个奇怪现象（我还没能复现）。这里一个私信显示它有回复（即使刷新后），但回复的不是私信。🤔

 ![CleanShot 2022-02-09 at 17.49.55@2x](https://global.discourse-cdn.com/meta/original/3X/8/6/86170a37830120b62d8edb7d7c90b7953b35d5d1.jpeg)
