# 在某些情况下，聊天消息未被标记为已编辑

**URL:** <https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465>\
**Category:** Support\
**Tags:** chat\
**Created:** [2023年十月25日 22:11 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465 "2023-10-25T22:11:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)\
**Post date:** [2023年十月25日 22:11 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/1 "2023-10-25T22:11:04Z")

</div>

聊天消息似乎没有被标记为已编辑，如果它们的作者快速编辑它们的话。

# 复现步骤

1. 发送一条聊天消息。
2. 立即编辑它。

---

<div class="post-metadata">

**Author:** ![tpglitch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpglitch/32/322836_2.png) [@tpglitch](https://meta.discourse.org/u/tpglitch)\
**Post date:** [2023年十月25日 22:19 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/2 "2023-10-25T22:19:22Z")

</div>

我可以确认这正在发生

---

<div class="post-metadata">

**Author:** ![DoxrGitHub](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/doxrgithub/32/448801_2.png) [@DoxrGitHub](https://meta.discourse.org/u/DoxrGitHub)\
**Post date:** [2023年十月25日 22:22 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/3 "2023-10-25T22:22:50Z")

</div>

我在 2 个论坛上都可以重现此问题，并且我发现我有大约 15 秒的时间进行编辑而不会出现“（已编辑）”提示。

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年十月25日 22:47 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/4 "2023-10-25T22:47:53Z")

</div>

现在可以对聊天消息进行编辑宽限期，这样您就不会在每次修复微小拼写错误时都出现 `(edited)`：

> <https://github.com/discourse/discourse/pull/23800>
>
> This change allows users to edit their chat messages based on the criteria added… to Site Settings.
> 
> If the grace period conditions are met then there will be no (edited) text applied to the message.
> 
> The following site settings are added to chat:
> 
> \- chat editing grace period (seconds since message created)
> \- chat editing grace period max diff for low trust levels (number of characters changed)
> \- chat editing grace period max diff for high trust levels (number of characters changed)
> 
> /t/111926

---

<div class="post-metadata">

**Author:** ![hello-smile6](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hello-smile6/32/304628_2.png) [@hello-smile6](https://meta.discourse.org/u/hello-smile6)\
**Post date:** [2023年十月25日 22:49 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/5 "2023-10-25T22:49:18Z")

</div>

有办法禁用它吗？

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年十月25日 22:51 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/6 "2023-10-25T22:51:14Z")

</div>

我认为有一些设置与之匹配 👍

- `chat editing grace period`（自消息创建以来的秒数）
- `chat editing grace period max diff for low trust levels`（更改的字符数）
- `chat editing grace period max diff for high trust levels`（更改的字符数）

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年十一月24日 22:51 UTC](https://meta.discourse.org/t/chat-messages-dont-get-marked-as-edited-in-certain-cases/283465/7 "2023-11-24T22:51:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
