Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

@chagai95
Copy link
Contributor

@chagai95 chagai95 commented Feb 10, 2022

Fixes element-hq/element-web#3969

Makes more sense to show the display name and not the user ID, I think.

Translation string needs to be changed for this as well:
https://translate.element.io/translate/element-web/matrix-react-sdk/en/?checksum=5db8fd2d99ec50a6

I could not figure it out, or I don't have the rights to change it.
Before:
image
After:
image

Signed-off-by: Chagai Friedlander chagai95@gmail.com


Here's what your changelog entry will look like:

✨ Features

Preview: https://pr7781--matrix-react-sdk.netlify.app
⚠️ Do you trust the author of this PR? Maybe this build will steal your keys or give you malware. Exercise caution. Use test accounts.

@chagai95 chagai95 requested a review from a team as a code owner February 10, 2022 21:33
@SimonBrandner SimonBrandner added the T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements label Feb 11, 2022
if (!Number.isInteger(to)) {
to = currentUserDefault;
}
const displayName = MatrixClientPeg.get().getUser(userId).displayName;
Copy link
Member

Choose a reason for hiding this comment

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

Displaynames are per-room, not global, so you can't use the displayName of getUser in a room. You'll need to get the room member instead

Comment on lines +515 to +516
_t('%(displayName)s from %(fromPowerLevel)s to %(toPowerLevel)s', {
displayName: diff.displayName,
Copy link
Member

Choose a reason for hiding this comment

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

You need to run the i18n script to regen the i18n files

@t3chguy
Copy link
Member

t3chguy commented May 9, 2022

Hello @chagai95 are you able to iterate on this PR based on the feedback?

Thanks

@chagai95
Copy link
Contributor Author

Hello @chagai95 are you able to iterate on this PR based on the feedback?

Thanks

Hey, I should be able to, thx for the ping, I'll try getting around to this very soon.

@MadLittleMods MadLittleMods added the Z-Community-PR Issue is solved by a community member's PR label Jun 1, 2022
@aaronraimist
Copy link
Contributor

Superseded by #9295

@turt2live
Copy link
Member

Closing in favour of #9295

@turt2live turt2live closed this Oct 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

T-Enhancement New features, changes in functionality, performance boosts, user-facing improvements Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

power level changes in the timeline show up based on mxid not display name

6 participants