mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-11 15:16:35 +02:00
Remove racey condition
joining might become false before we get the room down the sync
This commit is contained in:
parent
ed5f01d46f
commit
58554cce53
@ -617,7 +617,7 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onRoom: function(room) {
|
||||
if (!room || room.roomId !== this.state.roomId || !this.state.joining) {
|
||||
if (!room || room.roomId !== this.state.roomId) {
|
||||
return;
|
||||
}
|
||||
this.setState({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user