mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-30 10:51:13 +02:00
Update src/components/views/settings/ProfileSettings.js
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>
This commit is contained in:
parent
295dcbfe48
commit
d5eb4ff310
@ -89,7 +89,7 @@ export default class ProfileSettings extends React.Component {
|
|||||||
newState.originalAvatarUrl = newState.avatarUrl;
|
newState.originalAvatarUrl = newState.avatarUrl;
|
||||||
newState.avatarFile = null;
|
newState.avatarFile = null;
|
||||||
} else if (this.state.originalAvatarUrl !== this.state.avatarUrl) {
|
} else if (this.state.originalAvatarUrl !== this.state.avatarUrl) {
|
||||||
await client.setAvatarUrl(""); // use empty string as Synapse 500's on undefined
|
await client.setAvatarUrl(""); // use empty string as Synapse 500s on undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState(newState);
|
this.setState(newState);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user