Comment delay

This commit is contained in:
David Baker 2016-09-08 13:58:53 +01:00
parent a1f8116e3b
commit 74aef1fdad

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