mirror of https://github.com/vector-im/riot-web
fix NPE on events with no sender object
parent
d0ecd38927
commit
12db0d9130
|
@ -276,9 +276,10 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onSenderProfileClick: function(event) {
|
||||
var mxEvent = this.props.mxEvent;
|
||||
dispatcher.dispatch({
|
||||
action: 'insert_displayname',
|
||||
displayname: this.props.mxEvent.sender.name,
|
||||
displayname: mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(),
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue