# Matrix Specification v1.10 更新日志

|   |   | 
|---|---|
| Git commit | https://github.com/matrix-org/matrix-spec/tree/v1.10 |
| Release date | 2024年3月22日 |

{{< 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 >}}


## 客户端-服务器 API

**向后兼容的变更**

- [ ] 允许 `/versions` 端点可选接受认证，详见 [MSC4026](https://github.com/matrix-org/matrix-spec-proposals/pull/4026)。（[#1728](https://github.com/matrix-org/matrix-spec/issues/1728)）
- [ ] 增加本地删除请求，详见 [MSC4025](https://github.com/matrix-org/matrix-spec-proposals/pull/4025)。（[#1730](https://github.com/matrix-org/matrix-spec/issues/1730)）
- [ ] 按照 [MSC2530](https://github.com/matrix-org/matrix-spec-proposals/pull/2530) 的规定，将 `body` 字段作为媒体可选说明使用。（[#1731](https://github.com/matrix-org/matrix-spec/issues/1731)）
- [ ] 增加服务器支持能力发现端点，详见 [MSC1929](https://github.com/matrix-org/matrix-spec-proposals/pull/1929)。（[#1733](https://github.com/matrix-org/matrix-spec/issues/1733)）
- [ ] 增加对多流 VoIP 的支持，详见 [MSC3077](https://github.com/matrix-org/matrix-spec-proposals/pull/3077)。（[#1735](https://github.com/matrix-org/matrix-spec/issues/1735)）
- [ ] 指定 `Retry-After` 头部可用于限制客户端请求速率，详见 [MSC4041](https://github.com/matrix-org/matrix-spec-proposals/pull/4041)。（[#1737](https://github.com/matrix-org/matrix-spec/issues/1737)）
- [ ] 为 `GET /relations` 端点增加递归支持，详见 [MSC3981](https://github.com/matrix-org/matrix-spec-proposals/pull/3981)。（[#1746](https://github.com/matrix-org/matrix-spec/issues/1746)）

**规范澄清**

- [ ] [strike](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strike) 元素在 HTML 规范中已废弃，客户端应优先使用 [s](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s) 元素。（[#1629](https://github.com/matrix-org/matrix-spec/issues/1629)）
- [ ] 明确已读回执应根据线程和房间进行批量处理。（[#1685](https://github.com/matrix-org/matrix-spec/issues/1685)）
- [ ] 明确线程可以基于回复创建。（[#1687](https://github.com/matrix-org/matrix-spec/issues/1687)）
- [ ] 在回复的回退示例中，明确每行都应重复使用前缀序列。（[#1690](https://github.com/matrix-org/matrix-spec/issues/1690)）
- [ ] 明确加密密钥存储的账户数据对象格式。（[#1695](https://github.com/matrix-org/matrix-spec/issues/1695)，[#1734](https://github.com/matrix-org/matrix-spec/issues/1734)）
- [ ] 明确密钥备份 MAC 实现不正确，未将密文经过 HMAC-SHA-256 处理。（[#1712](https://github.com/matrix-org/matrix-spec/issues/1712)）
- [ ] 明确示例中一次性密钥和回退密钥的类型。（[#1715](https://github.com/matrix-org/matrix-spec/issues/1715)）
- [ ] 指明 SAS 的 HKDF 计算应使用 base64 编码密钥，而不是原始密钥字节。（[#1719](https://github.com/matrix-org/matrix-spec/issues/1719)）
- [ ] 明确如何在 SAS 流程第 12 步执行 ECDH 交换。（[#1720](https://github.com/matrix-org/matrix-spec/issues/1720)）
- [ ] 按照 [MSC4077](https://github.com/matrix-org/matrix-spec-proposals/pull/4077)，说明 HTML 标签的弃用策略。（[#1732](https://github.com/matrix-org/matrix-spec/issues/1732)）
- [ ] [font](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font) 元素在 HTML 规范中已废弃，客户端应优先使用带 `data-mx-bg-color` 和 `data-mx-color` 属性的 [span](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span) 元素。（[#1739](https://github.com/matrix-org/matrix-spec/issues/1739)）
- [ ] 明确 `GET /hierarchy` 端点 `PublicRoomsChunk` 的具体用途。（[#1740](https://github.com/matrix-org/matrix-spec/issues/1740)）
- [ ] 明确 `m.call.candidates` 中 `sdpMid` 和 `sdpMLineIndex` 非必需。（[#1742](https://github.com/matrix-org/matrix-spec/issues/1742)）
- [ ] 修正规范文档中的各种错别字。（[#1748](https://github.com/matrix-org/matrix-spec/issues/1748)）
- [ ] 明确每种 `Content-Type` 在非 JSON 请求/响应中的行为可能不同。（[#1756](https://github.com/matrix-org/matrix-spec/issues/1756)）
- [ ] 按照 [MSC4010](https://github.com/matrix-org/matrix-spec-proposals/pull/4010)，明确 `/account_data` API 不能用于设置 `m.push_rules` 账户数据类型。（[#1763](https://github.com/matrix-org/matrix-spec/issues/1763)）


## 服务器-服务器 API

**规范澄清**

- [ ] 使用 `POST` HTTP 方法优化服务器-服务器 API 请求签名示例，因为 `GET` 请求没有请求体。（[#1721](https://github.com/matrix-org/matrix-spec/issues/1721)）
- [ ] 明确 `GET /hierarchy` 端点中 `PublicRoomsChunk` 的具体用途。（[#1740](https://github.com/matrix-org/matrix-spec/issues/1740)）
- [ ] 明确 `GET /hierarchy` 响应中 `children` 数组项的 `children_state`、`room_type` 和 `allowed_room_ids` 属性不是必需的。（[#1741](https://github.com/matrix-org/matrix-spec/issues/1741)）


## 应用服务 API

**规范澄清**

- [ ] 明确当使用 `m.login.application_service` 登录类型且无效 `as_token` 时，`/login` 和 `/register` 端点应返回失败。（[#1744](https://github.com/matrix-org/matrix-spec/issues/1744)）


## 身份服务 API

无重大变更。


## 推送网关 API

无重大变更。


## 房间版本

**规范澄清**

- [ ] 针对房间版本 7 到 11：明确 `invite->knock` 不是合法的状态转移。（[#1717](https://github.com/matrix-org/matrix-spec/issues/1717)）


## 附录

无重大变更。


## 内部变更/工具

**规范澄清**

- [ ] 更新规范发布流程。（[#1680](https://github.com/matrix-org/matrix-spec/issues/1680)）
- [ ] 对贡献指南进行细微澄清。（[#1697](https://github.com/matrix-org/matrix-spec/issues/1697)）
- [ ] 将 Docsy 升级至 v0.8.0。（[#1699](https://github.com/matrix-org/matrix-spec/issues/1699)，[#1762](https://github.com/matrix-org/matrix-spec/issues/1762)）
- [ ] 修复 `@matrix-org/spec` 的 npm 发布脚本。（[#1713](https://github.com/matrix-org/matrix-spec/issues/1713)）
- [ ] 针对 MSC 的实现要求添加相关澄清说明。（[#1718](https://github.com/matrix-org/matrix-spec/issues/1718)）
- [ ] 更新 HTML 模板以包含对象模式定义的链接。（[#1724](https://github.com/matrix-org/matrix-spec/issues/1724)）
- [ ] 归纳整理 `/relations` 各类 API 的通用参数。（[#1745](https://github.com/matrix-org/matrix-spec/issues/1745)）
- [ ] 在 OpenAPI 定义和 JSON schema 中增加对含有片段的 `$ref` URI 的支持。（[#1751](https://github.com/matrix-org/matrix-spec/issues/1751)，[#1754](https://github.com/matrix-org/matrix-spec/issues/1754)）

