UI delay in UI

This commit is contained in:
Luke Barnard 2017-03-27 09:44:33 +01:00
parent be02ac3bc6
commit abc5b2d5f4

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