Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 58554cc

Browse files
author
Luke Barnard
committed
Remove racey condition
joining might become false before we get the room down the sync
1 parent ed5f01d commit 58554cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/RoomView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ module.exports = React.createClass({
617617
},
618618

619619
onRoom: function(room) {
620-
if (!room || room.roomId !== this.state.roomId || !this.state.joining) {
620+
if (!room || room.roomId !== this.state.roomId) {
621621
return;
622622
}
623623
this.setState({

0 commit comments

Comments
 (0)