diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 79698e475d..2128b68488 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -92,14 +92,16 @@ module.exports = React.createClass({ onMouseEnter: function() { this.setState( { hover : true }); + this.badgeOnMouseEnter(); }, onMouseLeave: function() { this.setState( { hover : false }); + this.badgeOnMouseLeave(); }, badgeOnMouseEnter: function() { - // Only allow none guests to access the context menu + // Only allow non-guests to access the context menu // and only change it if it needs to change if (!MatrixClientPeg.get().isGuest() && !this.state.badgeHover) { this.setState( { badgeHover : true } ); @@ -227,7 +229,7 @@ module.exports = React.createClass({ badgeContent = '\u200B'; } - badge =
{ badgeContent }
; + badge =
{ badgeContent }
; const EmojiText = sdk.getComponent('elements.EmojiText'); var label;