From 74aef1fdadac41a1e1d65f39f5d40be1f499ba96 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 8 Sep 2016 13:58:53 +0100 Subject: [PATCH] Comment delay --- src/components/views/context_menus/RoomTagContextMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/context_menus/RoomTagContextMenu.js b/src/components/views/context_menus/RoomTagContextMenu.js index f0dc5f0784..43fd7a553a 100644 --- a/src/components/views/context_menus/RoomTagContextMenu.js +++ b/src/components/views/context_menus/RoomTagContextMenu.js @@ -136,6 +136,8 @@ module.exports = React.createClass({ newTarget = null; } + // give some time for the user to see the icon change first, since + // this will hide the context menu once it completes q.delay(500).done(() => { return Rooms.setDMRoom(this.props.room.roomId, newTarget).finally(() => { // Close the context menu