From abc5b2d5f401344388c6e819447ff4b21aca44fc Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 27 Mar 2017 09:44:33 +0100 Subject: [PATCH] UI delay in UI --- src/components/views/context_menus/RoomTileContextMenu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/context_menus/RoomTileContextMenu.js b/src/components/views/context_menus/RoomTileContextMenu.js index 5b6cec884d..d981a36751 100644 --- a/src/components/views/context_menus/RoomTileContextMenu.js +++ b/src/components/views/context_menus/RoomTileContextMenu.js @@ -138,7 +138,9 @@ module.exports = React.createClass({ if (MatrixClientPeg.get().isGuest()) return; - Rooms.guessAndSetDMRoom(this.props.room, newIsDirectMessage).finally(() => { + Rooms.guessAndSetDMRoom( + this.props.room, newIsDirectMessage + ).delay(500).finally(() => { // Close the context menu if (this.props.onFinished) { this.props.onFinished();