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

Spec for calculating display names for rooms and users #145

Closed
wants to merge 6 commits into from

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 3, 2015

We can at least spec the algorithm, even if it's a pita to implement right now.

@richvdh
Copy link
Member Author

richvdh commented Nov 3, 2015

@kegsay, fancy taking a look at this?

event.
#. If the room has an `m.room.canonical_alias`_ state event, use the alias
given by that event.
#. If neither of the above events are present, a name should be composed based/sys/class/backlight/intel_backlight/brightness
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wtf?! :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Clients may wish to show the human-readable display name of the room member who
send a message, and in lists of room members. However, different members may
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence doesn't really make sense. I know what you mean, but the wording could be improved. Perhaps:

Clients may wish to show the display name of a room member as part of a membership list or when they send a message.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@kegsay
Copy link
Member

kegsay commented Nov 4, 2015

Reviewed: overall it is really good, we should absolutely be including this information until we can sort out server-side name generation. Unfortunately the whole problem of client-side generation is somewhat gnarly to explain, so I've done a lot of wording tweaks here and there which I feel simplifies the explanation. Please do counter if you feel they aren't explaining it any better.

@richvdh
Copy link
Member Author

richvdh commented Nov 4, 2015

Thanks for the feedback, @kegsay. All useful stuff, most of which I agree with.

There are a few points which still need nailing down - at some point in the future if not now:

  • A better way to pick the user(s) after which to name an anonymous room
  • We need to define how to test if two displaynames are the same (or how to pick a collation system to do so).
  • We probably want to stop people setting displaynames which can only plausibly exist to spoof another user.

My inclination is to open spec bugs on these, for now.

part of a membership list, or when they send a message. However, different
members may have conflicting display names. Display names MUST be disambiguated
before showing them to the user, in order to prevent spoofing of other users.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intention here for the MUST would be only if the app hides the user ID. If apps show the user ID, then they should not be forced to apply disambiguation rules by the MUST here. Some clarification would be good.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm. Display names MUST be disambiguated [somehow] before showing them to the user. Clients SHOULD use this algorithm to do so. I'm not sure there is a problem.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point; didn't see the SHOULD on the algorithm. LGTM

@richvdh
Copy link
Member Author

richvdh commented Nov 5, 2015

  • A better way to pick the user(s) after which to name an anonymous room

Raised https://matrix.org/jira/browse/SPEC-267

  • We need to define how to test if two displaynames are the same (or how to pick a collation system to do so).

https://matrix.org/jira/browse/SPEC-221

We probably want to stop people setting displaynames which can only plausibly exist to spoof another user.

https://matrix.org/jira/browse/SPEC-1

@kegsay
Copy link
Member

kegsay commented Nov 5, 2015

LGTM other than #145 (comment)

@kegsay
Copy link
Member

kegsay commented Nov 5, 2015

LGTM

@richvdh
Copy link
Member Author

richvdh commented Nov 5, 2015

Thanks!

richvdh added a commit that referenced this pull request Nov 5, 2015
@richvdh richvdh closed this Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants