From 975a2db3e4354c840202263c9853f1887cac8029 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 27 Mar 2017 09:42:04 +0100 Subject: [PATCH] UI delay done in UI --- src/Rooms.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Rooms.js b/src/Rooms.js index 0f81bf5391..08fa7f797f 100644 --- a/src/Rooms.js +++ b/src/Rooms.js @@ -90,11 +90,7 @@ export function guessAndSetDMRoom(room, isDirect) { newTarget = null; } - // give some time for the user to see the icon change first, since - // this will hide the context menu once it completes - return q.delay(500).then(() => { - return setDMRoom(room.roomId, newTarget); - }); + return setDMRoom(room.roomId, newTarget); } /**