Fix default avatars

This commit is contained in:
David Baker 2015-08-14 10:30:47 +01:00
parent 7a8537f3dc
commit a3879b507a
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}); });
}, },

View File

@ -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)
}); });
}, },