mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 23:41:33 +02:00
fix NPE
This commit is contained in:
parent
59f599af5c
commit
5bdcb64464
@ -64,6 +64,8 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
_recalculateState: function() {
|
||||
if (!this.props.room) return;
|
||||
|
||||
var topic = this.props.room.currentState.getStateEvents('m.room.topic', '');
|
||||
var name = this.props.room.currentState.getStateEvents('m.room.name', '');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user