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

Rework how disambiguation is handled #1673

Closed

Conversation

SimonBrandner
Copy link
Contributor

This adds a disambiguate property to the RoomMember. This is useful when a client wants to handle more things on its own. For example, a client may wish to format the displayName differently than the userId and therefore has to retrieve the displayName and userName separately - it can't rely on js-sdk's calculation of display names.

Signed-off-by: Šimon Brandner <[email protected]>
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

otherwise lgtm, thanks!

src/models/room-member.js Outdated Show resolved Hide resolved
Co-authored-by: Travis Ralston <[email protected]>
@SimonBrandner SimonBrandner requested a review from turt2live April 22, 2021 05:44
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

looks good - we'll probably land this at the same time as the react-sdk, just in case.

@SimonBrandner SimonBrandner deleted the disambiguate-prop branch June 8, 2021 15:08
@SimonBrandner
Copy link
Contributor Author

New PR at: #1730

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.

3 participants