UI delay in UI

pull/3458/head
Luke Barnard 2017-03-27 09:44:33 +01:00
parent be02ac3bc6
commit abc5b2d5f4
1 changed files with 3 additions and 1 deletions

View File

@ -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();