You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
fix NPE on events with no sender object
This commit is contained in:
@@ -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(),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user