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

Commit 1fc5c9d

Browse files
authored
Merge pull request #672 from matrix-org/dbkr/velociraptor_always_change_visibility
Fix one read receipt randomly not appearing
2 parents 2cf24c1 + 42f75e1 commit 1fc5c9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Velociraptor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ module.exports = React.createClass({
6262
oldNode.style.visibility = c.props.style.visibility;
6363
}
6464
});
65-
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
66-
oldNode.style.visibility = c.props.style.visibility;
67-
}
6865
//console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left);
6966
}
67+
if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') {
68+
oldNode.style.visibility = c.props.style.visibility;
69+
}
7070
self.children[c.key] = old;
7171
} else {
7272
// new element. If we have a startStyle, use that as the style and go through

0 commit comments

Comments
 (0)