Comment delay

pull/2111/head
David Baker 2016-09-08 13:58:53 +01:00
parent a1f8116e3b
commit 74aef1fdad
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,8 @@ module.exports = React.createClass({
newTarget = null;
}
// give some time for the user to see the icon change first, since
// this will hide the context menu once it completes
q.delay(500).done(() => {
return Rooms.setDMRoom(this.props.room.roomId, newTarget).finally(() => {
// Close the context menu