mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 04:06:44 +02:00
Null check room because those events will be emitted before the room is stored.
This commit is contained in:
parent
1cabe2ec37
commit
b0f0d5f6d0
@ -385,6 +385,7 @@ module.exports = React.createClass({
|
||||
this._updateTabCompleteList(this.state.room);
|
||||
|
||||
var room = MatrixClientPeg.get().getRoom(this.props.roomId);
|
||||
if (!room) return;
|
||||
var me = MatrixClientPeg.get().credentials.userId;
|
||||
if (this.state.joining && room.hasMembershipState(me, "join")) {
|
||||
this.setState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user