mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
fix NPE on events with no sender object
This commit is contained in:
parent
d0ecd38927
commit
12db0d9130
1 changed files with 2 additions and 1 deletions
|
@ -276,9 +276,10 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onSenderProfileClick: function(event) {
|
onSenderProfileClick: function(event) {
|
||||||
|
var mxEvent = this.props.mxEvent;
|
||||||
dispatcher.dispatch({
|
dispatcher.dispatch({
|
||||||
action: 'insert_displayname',
|
action: 'insert_displayname',
|
||||||
displayname: this.props.mxEvent.sender.name,
|
displayname: mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue