This commit is contained in:
Matthew Hodgson 2015-12-17 11:56:41 +00:00
parent d979a028a5
commit bb184c12a1

View file

@ -37,7 +37,7 @@ module.exports = React.createClass({
render: function() {
var room = MatrixClientPeg.get().getRoom(this.props.incomingCall.roomId);
var room = this.props.incomingCall ? MatrixClientPeg.get().getRoom(this.props.incomingCall.roomId) : null;
var caller = room ? room.name : "unknown";
return (
<div className="mx_IncomingCallBox" id="incomingCallBox">