From c89904bc25136a9520f798b4e6cc61335f18b5f1 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Fri, 22 Jul 2016 17:30:31 +0100 Subject: [PATCH] Initial unstyled mentions state notifier context menu --- src/components/views/rooms/RoomTile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js index 48cb345d91..9c39b50427 100644 --- a/src/components/views/rooms/RoomTile.js +++ b/src/components/views/rooms/RoomTile.js @@ -75,7 +75,7 @@ module.exports = React.createClass({ }, onBadgeClicked: function(e) { - var Label = sdk.getComponent('elements.Label'); + var Label = sdk.getComponent('rooms.NotificationStateContextMenu'); var elementRect = e.target.getBoundingClientRect(); var x = elementRect.right; var y = elementRect.top + (elementRect.height / 2); @@ -83,6 +83,7 @@ module.exports = React.createClass({ ContextualMenu.createMenu(Label, { left: x, top: y, + room: this.props.room, onFinished: function() { self.setState({menu: false}); }