mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix default avatars
This commit is contained in:
parent
7a8537f3dc
commit
a3879b507a
@ -60,11 +60,11 @@ module.exports = {
|
|||||||
|
|
||||||
onError: function(ev) {
|
onError: function(ev) {
|
||||||
// don't tightloop if the browser can't load a data url
|
// don't tightloop if the browser can't load a data url
|
||||||
if (ev.target.src == this.defaultAvatarUrl()) {
|
if (ev.target.src == this.defaultAvatarUrl(this.props.member)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
imageUrl: this.defaultAvatarUrl()
|
imageUrl: this.defaultAvatarUrl(this.props.member)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -51,11 +51,11 @@ module.exports = {
|
|||||||
|
|
||||||
onError: function(ev) {
|
onError: function(ev) {
|
||||||
// don't tightloop if the browser can't load a data url
|
// don't tightloop if the browser can't load a data url
|
||||||
if (ev.target.src == this.defaultAvatarUrl()) {
|
if (ev.target.src == this.defaultAvatarUrl(this.props.room)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
imageUrl: this.defaultAvatarUrl()
|
imageUrl: this.defaultAvatarUrl(this.props.room)
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user