From 42f75e1740d76eb55ea3d3276db886dcc5cdf1fc Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Feb 2017 18:21:53 +0000 Subject: [PATCH] Fix one read receipt randomly not appearing The velociraptor was only actioning hidden -> visible transitions if the position had changed, so the one RR that stayed in position but became visible... didn't become visible. --- src/Velociraptor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Velociraptor.js b/src/Velociraptor.js index 006dbcb0ac..18c871a12d 100644 --- a/src/Velociraptor.js +++ b/src/Velociraptor.js @@ -62,11 +62,11 @@ module.exports = React.createClass({ oldNode.style.visibility = c.props.style.visibility; } }); - if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') { - oldNode.style.visibility = c.props.style.visibility; - } //console.log("translation: "+oldNode.style.left+" -> "+c.props.style.left); } + if (oldNode.style.visibility == 'hidden' && c.props.style.visibility == 'visible') { + oldNode.style.visibility = c.props.style.visibility; + } self.children[c.key] = old; } else { // new element. If we have a startStyle, use that as the style and go through