docs-matrix-spec/locales/zh-Hans/rooms/fragments/v3-handling-redactions.md
2025-04-20 16:13:37 +08:00

15 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
---
{{< boxes/warning >}}
本页面的翻译未经核对,可能存在翻译质量不佳、错翻、漏翻等情况。您可以在 <a href="https://codeberg.org/wholetrans/docs-matrix-spec">Forgejo 存储库</a> 打开 Issue、提交 Pull Request 或<a href="mailto:errata@wholetrans.org">邮件联系</a>我们提出改进建议和参与翻译与核对。
{{< /boxes/warning >}}
{{% added-in v=3 %}} 在房间版本1和2中清除操作redactions明确属于[授权规则](/rooms/v1/#authorization-rules)第11条。自房间版本3起这些条件不再适用如[本版本的授权规则](#authorization-rules)所示。
尽管清除操作始终被事件的授权规则接受,但只有在清除事件和被清除的事件都已被接收并且能够被验证后,才能将其发送给客户端。如果这两个事件都有效并已被服务器看到,那么在满足以下任一条件时,服务器会应用清除操作:
1. 清除事件的 `sender` 的权限等级大于或等于*清除权限等级*redact level
2. 清除事件的 `sender` 的域名与原事件的 `sender` 的域名一致。
如果服务器将应用清除操作,则该清除事件也会被发送给客户端。否则,服务器只会等待有效的配对事件到来,届时可以重新检查上述条件。