-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Document grammar for device IDs #290
Comments
https://matrix.org/docs/spec/intro.html#devices says:
beyond that, I'm not sure there is anything here which isn't already covered by #174 (which explicitly mentions device ids)? |
Perhaps this is an issue with having important information that exists only in the intro document. I'd expect the intro to explain general concepts of how Matrix works, but that any details useful to an implementer be available within the main document for that API, perhaps with an explicit link to other documents when information would otherwise be duplicated between documents. As is, I would've had to guess to go check the introduction for the information I wanted while looking at the client-server spec, which obviously wasn't something that occurred to me. :} |
What is the current (provisional) guidance on what a device ID should and/or can be, from an "implementing a homeserver" perspective? #174 is about 'completely opaque identifiers', but that clashes with the Even just some practical data on what major clients currently do or allow, would be useful here. |
The grammar for device IDs is not documented [1]. In the meantime we should not assume that device IDs will not contain reserved characters. [1]: https://github.com/matrix-org/matrix-doc/issues/1257
The spec is currently missing any definition of the grammar for a device ID. While it is implied that they should just be a random string of characters, at least the following should be explicit:
There needs to be some UX consideration beyond considering them opaque byte sequences, since they are displayed visually to users in some cases.
Though not specific to the grammar of the ID, the spec should also address what the scope of uniqueness is for device IDs. Do they need to be universally unique? Or only unique to the user the device belongs to? Or unique to the user's homeserver?
This may be considered part of #174.
The text was updated successfully, but these errors were encountered: