UI delay in UI
This commit is contained in:
parent
be02ac3bc6
commit
abc5b2d5f4
1 changed files with 3 additions and 1 deletions
|
@ -138,7 +138,9 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
if (MatrixClientPeg.get().isGuest()) return;
|
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
|
// Close the context menu
|
||||||
if (this.props.onFinished) {
|
if (this.props.onFinished) {
|
||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
|
|
Loading…
Reference in a new issue