Merge pull request #4699 from matrix-org/t3chguy/fix-own-displayname

Profile settings should never show a disambiguated display name
This commit is contained in:
Michael Telatynski 2020-06-04 13:50:15 +01:00 committed by GitHub
commit 4043989a25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,8 +40,8 @@ export default class ProfileSettings extends React.Component {
if (avatarUrl) avatarUrl = client.mxcUrlToHttp(avatarUrl, 96, 96, 'crop', false); if (avatarUrl) avatarUrl = client.mxcUrlToHttp(avatarUrl, 96, 96, 'crop', false);
this.state = { this.state = {
userId: user.userId, userId: user.userId,
originalDisplayName: user.displayName, originalDisplayName: user.rawDisplayName,
displayName: user.displayName, displayName: user.rawDisplayName,
originalAvatarUrl: avatarUrl, originalAvatarUrl: avatarUrl,
avatarUrl: avatarUrl, avatarUrl: avatarUrl,
avatarFile: null, avatarFile: null,