Skip to content
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

Should we switch the namespace of msgtype? (SPEC-68) #52

Open
matrixbot opened this issue Nov 18, 2014 · 3 comments
Open

Should we switch the namespace of msgtype? (SPEC-68) #52

matrixbot opened this issue Nov 18, 2014 · 3 comments
Labels
A-Client-Server Issues affecting the CS API wart A point where the protocol is inconsistent or inelegant

Comments

@matrixbot
Copy link
Member

Matthew:
bq. we should switch namespace of msgtype away from m.text etc somehow - people get too confused.

(Imported from https://matrix.org/jira/browse/SPEC-68)

(Reported by @kegsay)

@matrixbot
Copy link
Member Author

Jira watchers: @kegsay @leonerd @ara4n

@matrixbot
Copy link
Member Author

Confused howso? Do you have some specific examples of confusion and a suggestion of what might be better?

-- @leonerd

@matrixbot
Copy link
Member Author

From a mail discussion with Joao:

I believe msg type and events are sharing the same “m.” naming convention (e.g. m.text and m.room.message) which could be misleading. Btw, a “msgtype” and an “event type” are the same thing?

Also a good point. msgtype and event type are two distinct things: messages are a type of event and then there are many different types of message (text message, image, etc). Also note that the message type comes within the event content and so will be encrypted when end to end encryption comes along, whereas the event type will be visible to the home server.

The original reason for having m.text was because it's so common that having m.msgtype.text or something would be redundant just to avoid confusion between namespaces (and imply a shared namespace).

I'm not sure what the correct solution here should be, but I agree with Joao that it's confusing at first.

-- @ara4n

@matrixbot matrixbot added the p2 label Oct 28, 2016
@matrixbot matrixbot changed the title Should we switch the namespace of msgtype? Should we switch the namespace of msgtype? (SPEC-68) Oct 31, 2016
@matrixbot matrixbot added the spec-bug Something which is in the spec, but is wrong label Nov 7, 2016
@richvdh richvdh added wart A point where the protocol is inconsistent or inelegant and removed p2 spec-bug Something which is in the spec, but is wrong labels May 3, 2018
@turt2live turt2live added the A-Client-Server Issues affecting the CS API label Feb 6, 2019
@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Mar 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Server Issues affecting the CS API wart A point where the protocol is inconsistent or inelegant
Projects
None yet
Development

No branches or pull requests

3 participants