mirror of https://github.com/vector-im/riot-web
Update src/components/views/settings/ProfileSettings.js
Co-Authored-By: J. Ryan Stinnett <jryans@gmail.com>pull/21833/head
parent
295dcbfe48
commit
d5eb4ff310
|
@ -89,7 +89,7 @@ export default class ProfileSettings extends React.Component {
|
|||
newState.originalAvatarUrl = newState.avatarUrl;
|
||||
newState.avatarFile = null;
|
||||
} 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);
|
||||
|
|
Loading…
Reference in New Issue