mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
When upgrading rooms, we reassign any local aliases from the old room to the new room. This commit updates the m.room.canonical_alias events in the old and new rooms to reflect which aliases were moved. The spec is unclear on whether the server should do this[1], but it's consistent with synapse's behavior. I went with putting the canonical alias update logic inline, rather than something like add_canonical_alias and remove_canonical_alias helper functions to the alias service, because it's desirable to have the alias updates be sent as a single event than a separate event for each change. [1]: https://github.com/matrix-org/matrix-spec/issues/2142 |
||
|---|---|---|
| .. | ||
| contributing | ||
| installing | ||
| changelog.md | ||
| code-of-conduct.md | ||
| contributing.md | ||
| installing.md | ||
| introduction.md | ||
| migration.md | ||
| SUMMARY.md | ||