-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix room tags spec #1457
Fix room tags spec #1457
Conversation
any tags in this namespace they don't understand. | ||
* The namespace ``u.*`` is reserved for user-defined tags. The portion of the string after the ``u.`` | ||
is defined to be the display name of this tag. No other semantics should be inferred from tags in | ||
this namespace. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note change here defining the behaviour of stripping the u.
to get the display name which I assume was what this intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was indeed the original intent of #1054
Tags namespaces are defined in the following way, depending on how the client are expected to interpret them: | ||
|
||
* The namespace ``m.*`` is reserved for tags defined in the Matrix specification. Clients must ignore | ||
any tags in this namespace they don't understand. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor change here: s.current/Matrix/ (the m.
namespace is reserved for any version of the spec, not just this one)
See matrix-org/matrix-spec-proposals#1457 for the background.
This has been approved for a while - merging. |
Fix Riot's behaviour with room tags after my cleanup in matrix-org/matrix-spec-proposals#1457 . Although, reading it again, it's not clear how you're supposed to tell the difference between a reverse-dns tag name and a legacy freeform text tag (contains a '.'?) - I've left it detecting these as freeform text for now.
This strives to fix all remaining cases where additional attributes (most often 'description' but not only) are provided next to $ref by wrapping $ref in allOf; and also drops allOf in a couple of places where $ref is the only element under it.
The room tag spec started out as plain strings, then #1054 introduced namespaces but just added a paragraph without updating any of the existing copy to reflect namespaces, making the spec contradict itself.
m.tag
event looks likem.favourite
andm.lowpriority
mean...N.B. I'm trying to lead by example here by doing this a direct PR without a proposal doc, since I think this is all clarifying the existing intention of the spec rather than changing it.