1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

UI delay done in UI

This commit is contained in:
Luke Barnard
2017-03-27 09:42:04 +01:00
parent 7ecabe49d2
commit 975a2db3e4

View File

@@ -90,11 +90,7 @@ export function guessAndSetDMRoom(room, isDirect) {
newTarget = null; newTarget = null;
} }
// give some time for the user to see the icon change first, since return setDMRoom(room.roomId, newTarget);
// this will hide the context menu once it completes
return q.delay(500).then(() => {
return setDMRoom(room.roomId, newTarget);
});
} }
/** /**